Preview environment

interface RESTPostAPIGuildRoleJSONBody

export interface RESTPostAPIGuildRoleJSONBody

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

optional
color? : number | null | undefined = 0

RGB color value

optional
hoist? : boolean | null | undefined = false

Whether the role should be displayed separately in the sidebar

optional
icon? : string | null | undefined

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

optional
mentionable? : boolean | null | undefined = false

Whether the role should be mentionable

optional
name? : string | null | undefined = "new role"

Name of the role

optional
permissions? : Permissions | null | undefined = Default role permissions in guild

Bitwise value of the enabled/disabled permissions

optional
unicode_emoji? : string | null | undefined

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