distype - v3.0.1
    Preparing search index...

    Interface CachedRole

    A cached role.

    interface CachedRole {
        color?: number;
        colors?: APIRoleColors;
        flags?: RoleFlags;
        guild_id?: string;
        hoist?: boolean;
        icon?: null | string;
        id: string;
        managed?: boolean;
        mentionable?: boolean;
        name?: string;
        permissions?: string;
        position?: number;
        tags?: APIRoleTags;
        unicode_emoji?: null | string;
    }

    Hierarchy

    • Partial<DiscordTypes.APIRole>
      • CachedRole
    Index

    Properties

    color?: number

    Integer representation of hexadecimal color code

    color will still be returned by the API, but using the colors field is recommended when doing requests.

    colors?: APIRoleColors

    The role's colors

    flags?: RoleFlags

    Role flags

    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

    Permission bit set

    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