Skip to content

CreateRoleOptions

typedef · Source

Options used to create a new role. Type: Object

Properties

name

optional

name: string

The name of the new role

color

optional

color: ColorResolvable

The data to create the role with This property is deprecated. Use colors instead.

colors

optional

colors: RoleColorsResolvable

The colors to create the role with

hoist

optional

hoist: boolean

Whether or not the new role should be hoisted

permissions

optional

permissions: PermissionResolvable

The permissions for the new role

position

optional

position: number

The position of the new role

mentionable

optional

mentionable: boolean

Whether or not the new role should be mentionable

icon

nullable · optional

icon: BufferResolvable | Base64Resolvable | EmojiResolvable

The icon for the role The EmojiResolvable should belong to the same guild as the role. If not, pass the emoji's URL directly

unicodeEmoji

nullable · optional

unicodeEmoji: string

The unicode emoji for the role

reason

optional

reason: string

The reason for creating this role

Unofficial software. Not affiliated with or supported by Discord.