Preview environment

interface RoleData

export interface RoleData

The data for a role.

optional
color? : ColorResolvable

The color of the role, either a hex string or a base 10 number

optional
hoist? : boolean

Whether or not the role should be hoisted

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

optional
mentionable? : boolean

Whether or not the role should be mentionable

optional
name? : string

The name of the role

optional
permissions? : PermissionResolvable

The permissions of the role

optional
position? : number

The position of the role

optional
unicodeEmoji? : string | null

The unicode emoji for the role