DiscordRole
Defined in: bot/bot.type.ts:437
A role in a server, as Discord returns it.
Properties
Section titled “Properties”color:
number
Defined in: bot/bot.type.ts:443
The role colour as an integer RGB value; 0 means no colour.
hoist?
Section titled “hoist?”
optionalhoist?:boolean
Defined in: bot/bot.type.ts:447
Whether members with the role are listed separately in the member list.
id:
string
Defined in: bot/bot.type.ts:439
The role id.
managed?
Section titled “managed?”
optionalmanaged?:boolean
Defined in: bot/bot.type.ts:451
Whether an integration (such as a bot) manages the role.
mentionable
Section titled “mentionable”mentionable:
boolean
Defined in: bot/bot.type.ts:445
Whether anyone can
Mention
Section titled “Mention”the role.
name:
string
Defined in: bot/bot.type.ts:441
The role name.
permissions?
Section titled “permissions?”
optionalpermissions?:string
Defined in: bot/bot.type.ts:449
Bitfield of permissions, as a string.
position?
Section titled “position?”
optionalposition?:number
Defined in: bot/bot.type.ts:453
The role’s position in the role hierarchy.