Skip to content

CreateRoleInput

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

What POST /guilds/{id}/roles takes.

optional color?: number

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

The colour as an integer RGB value.


optional hoist?: boolean

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

Whether to list the role’s members separately.


optional mentionable?: boolean

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

Whether anyone can

the role.


name: string

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

The role name.


optional permissions?: string

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

Bitfield of permissions, as a string.