Skip to content

DiscordRole

Defined in: bot/bot.type.ts:437

A role in a server, as Discord returns it.

color: number

Defined in: bot/bot.type.ts:443

The role colour as an integer RGB value; 0 means no colour.


optional hoist?: 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.


optional managed?: boolean

Defined in: bot/bot.type.ts:451

Whether an integration (such as a bot) manages the role.


mentionable: boolean

Defined in: bot/bot.type.ts:445

Whether anyone can

the role.


name: string

Defined in: bot/bot.type.ts:441

The role name.


optional permissions?: string

Defined in: bot/bot.type.ts:449

Bitfield of permissions, as a string.


optional position?: number

Defined in: bot/bot.type.ts:453

The role’s position in the role hierarchy.