interface APIRole

external
export interface APIRole

https://discord.com/developers/docs/topics/permissions#role-object

external
color : number

Integer representation of hexadecimal color code

external
flags : RoleFlags

Role flags

external
hoist : boolean

If this role is pinned in the user listing

optionalexternal
icon? : string | null

The role icon hash

external
id : Snowflake

Role id

external
managed : boolean

Whether this role is managed by an integration

external
mentionable : boolean

Whether this role is mentionable

external
name : string

Role name

external
permissions : Permissions

Permission bit setSee https://en.wikipedia.org/wiki/Bit_field

external
position : number

Position of this role

optionalexternal
tags? : APIRoleTags

The tags this role has

optionalexternal
unicode_emoji? : string | null

The role unicode emoji as a standard emoji