RoleData
typedef · Source
The data for a role. Type: Object
Properties
name
name: string
The name of the role
color
color: ColorResolvable
The color of the role, either a hex string or a base 10 number This property is deprecated. Use colors instead.
colors
colors: RoleColorsResolvable
The colors of the role
hoist
hoist: boolean
Whether or not the role should be hoisted
position
position: number
The position of the role
permissions
permissions: PermissionResolvable
The permissions of the role
mentionable
mentionable: boolean
Whether or not the role should be mentionable
icon
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
unicodeEmoji: string
The unicode emoji for the role