Skip to content

RoleData

typedef · Source

The data for a role. Type: Object

Properties

name

optional

name: string

The name of the role

color

optional

color: ColorResolvable

The color of the role, either a hex string or a base 10 number This property is deprecated. Use colors instead.

colors

optional

colors: RoleColorsResolvable

The colors of the role

hoist

optional

hoist: boolean

Whether or not the role should be hoisted

position

optional

position: number

The position of the role

permissions

optional

permissions: PermissionResolvable

The permissions of the role

mentionable

optional

mentionable: boolean

Whether or not the 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

Unofficial software. Not affiliated with or supported by Discord.