Interface CachedRole

A cached role.

Hierarchy

  • Partial<DiscordTypes.APIRole>
    • CachedRole

Properties

color?: number

Integer representation of hexadecimal color code

guild_id?: string

The ID of the guild the role originates from. May be undefined if only sent from certain gateway dispatches.

hoist?: boolean

If this role is pinned in the user listing

icon?: null | string

The role icon hash

id: string

The role's ID. Always included, regardless of cache control.

managed?: boolean

Whether this role is managed by an integration

mentionable?: boolean

Whether this role is mentionable

name?: string

Role name

permissions?: string
position?: number

Position of this role

tags?: APIRoleTags

The tags this role has

unicode_emoji?: null | string

The role unicode emoji as a standard emoji

Generated using TypeDoc