Skip to main content
Module

x/discord_api_types/payloads/v9/emoji.ts

Up to date Discord API Typings, versioned by the API version
Go to Latest
File
/** * Types extracted from https://discord.com/developers/docs/resources/emoji */
import type { APIRole } from './permissions.ts';import type { APIUser } from './user.ts';import type { Snowflake } from '../../globals.ts';
/** * Not documented but mentioned */export interface APIPartialEmoji { /** * Emoji id */ id: Snowflake | null; /** * Emoji name (can be null only in reaction emoji objects) */ name: string | null; /** * Whether this emoji is animated */ animated?: boolean;}
/** * https://discord.com/developers/docs/resources/emoji#emoji-object-emoji-structure */export interface APIEmoji extends APIPartialEmoji { /** * Roles this emoji is whitelisted to */ roles?: APIRole['id'][]; /** * User that created this emoji */ user?: APIUser; /** * Whether this emoji must be wrapped in colons */ require_colons?: boolean; /** * Whether this emoji is managed */ managed?: boolean; /** * Whether this emoji can be used, may be false due to loss of Server Boosts */ available?: boolean;}