interface RESTPostAPIGuildRoleJSONBody

external
export interface RESTPostAPIGuildRoleJSONBody

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

optionalexternal
color? : number | null | undefined = 0

RGB color value

optionalexternal
hoist? : boolean | null | undefined = false

Whether the role should be displayed separately in the sidebar

optionalexternal
icon? : string | null | undefined

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

optionalexternal
mentionable? : boolean | null | undefined = false

Whether the role should be mentionable

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

Name of the role

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

Bitwise value of the enabled/disabled permissions

optionalexternal
unicode_emoji? : string | null | undefined

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