Skip to main content
Module

x/discord_api_types/payloads/v8/permissions.ts>APIRole

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface APIRole
Deprecated
Deprecated

API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.

import { type APIRole } from "https://deno.land/x/discord_api_types@0.37.2/payloads/v8/permissions.ts";

Properties

Role id

name: string

Role name

color: number

Integer representation of hexadecimal color code

hoist: boolean

If this role is pinned in the user listing

optional
icon: string | null

The role icon hash

optional
unicode_emoji: string | null

The role unicode emoji as a standard emoji

position: number

Position of this role

permissions: Permissions
managed: boolean

Whether this role is managed by an integration

mentionable: boolean

Whether this role is mentionable

optional
tags: APIRoleTags

The tags this role has