APIRole

https://discord.com/developers/docs/topics/permissions#role-object

Signature

export interface APIRole

Properties

name: string;

Role name

color: number;

Integer representation of hexadecimal color code

Deprecated
hoist: boolean;

If this role is pinned in the user listing

icon?: string | null;

The role icon hash

unicode_emoji?: string | null;

The role unicode emoji as a standard emoji

position: number;

Position of this role

managed: boolean;

Whether this role is managed by an integration

mentionable: boolean;

Whether this role is mentionable