Preview environment

interface RESTPostAPIGuildRoleJSONBody

export interface RESTPostAPIGuildRoleJSONBody

https://discord.com/developers/docs/resources/guild#create-guild-role

optional
color? : number | null | undefined

RGB color value 0

optional
hoist? : boolean | null | undefined

Whether the role should be displayed separately in the sidebar false

optional
icon? : string | null | undefined

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

optional
mentionable? : boolean | null | undefined

Whether the role should be mentionable false

optional
name? : string | null | undefined

Name of the role "new role"

optional
permissions? : Permissions | null | undefined

Bitwise value of the enabled/disabled permissions "default role permissions in guild"

optional
unicode_emoji? : string | null | undefined

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