interface APIRole {
    color: number;
    colors?: APIRoleColors;
    flags: InPrompt;
    hoist: boolean;
    icon?: null | string;
    id: string;
    managed: boolean;
    mentionable: boolean;
    name: string;
    permissions: string;
    position: number;
    tags?: APIRoleTags;
    unicode_emoji?: null | string;
}

Properties

color: number

Integer representation of hexadecimal color code

color will still be returned by the API, but using the colors field is recommended when doing requests.

colors?: APIRoleColors

The role's colors

flags: InPrompt

Role flags

hoist: boolean

If this role is pinned in the user listing

icon?: null | string

The role icon hash

id: string

Role id

managed: boolean

Whether this role is managed by an integration

mentionable: boolean

Whether this role is mentionable

name: string

Role name

permissions: string

Permission bit set

position: number

Position of this role

The tags this role has

unicode_emoji?: null | string

The role unicode emoji as a standard emoji