Preview environment

interface APIRole

export interface APIRole

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

color : number

Integer representation of hexadecimal color code

flags : RoleFlags

Role flags

hoist : boolean

If this role is pinned in the user listing

optional
icon? : string | null

The role icon hash

Role id

managed : boolean

Whether this role is managed by an integration

mentionable : boolean

Whether this role is mentionable

name : string

Role name

permissions : Permissions

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

position : number

Position of this role

optional
tags? : APIRoleTags

The tags this role has

optional
unicode_emoji? : string | null

The role unicode emoji as a standard emoji