CreateRoleInput
Defined in: bot/bot.type.ts:471
What POST /guilds/{id}/roles takes.
Properties
Section titled “Properties”color?
Section titled “color?”
optionalcolor?:number
Defined in: bot/bot.type.ts:475
The colour as an integer RGB value.
hoist?
Section titled “hoist?”
optionalhoist?:boolean
Defined in: bot/bot.type.ts:479
Whether to list the role’s members separately.
mentionable?
Section titled “mentionable?”
optionalmentionable?:boolean
Defined in: bot/bot.type.ts:477
Whether anyone can
Mention
Section titled “Mention”the role.
name:
string
Defined in: bot/bot.type.ts:473
The role name.
permissions?
Section titled “permissions?”
optionalpermissions?:string
Defined in: bot/bot.type.ts:481
Bitfield of permissions, as a string.