interface RESTPostAPIGuildRoleJSONBody {
    color?: null | number;
    colors?: APIRoleColors;
    hoist?: null | boolean;
    icon?: null | string;
    mentionable?: null | boolean;
    name?: null | string;
    permissions?: null | string;
    unicode_emoji?: null | string;
}

Hierarchy (View Summary)

Properties

color?: null | number

RGB color value

0

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

colors?: APIRoleColors

The role's colors

{ "primary_color": 0, "secondary_color": null, "tertiary_color": null }

hoist?: null | boolean

Whether the role should be displayed separately in the sidebar

false

icon?: null | string

The role's icon image (if the guild has the ROLE_ICONS feature)

mentionable?: null | boolean

Whether the role should be mentionable

false

name?: null | string

Name of the role

"new role"

permissions?: null | string

Bitwise value of the enabled/disabled permissions

Default role permissions in guild
unicode_emoji?: null | string

The role's unicode emoji as a standard emoji (if the guild has the ROLE_ICONS feature)