Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Emoji

Hierarchy

Index

Constructors

constructor

Properties

animated

animated: boolean | undefined

Whether this emoji is animated

available

available: boolean | undefined

Whether this emoji can be used, may be false due to loss of Server Boosts

bot

bot: Bot

The Bot operating this structure

emojiId

emojiId: Snowflake | null

The ID of the emoji. Possibly null if the emoji class was generated from a standard emoji

guild

guild: Guild | undefined

The guild this emoji was created. Possibly undefined if this is a standard emoji

managed

managed: boolean | undefined

Whether this emoji is managed

name

name: string | null

The name of the emoji. Possibly null in reaction emoji objects

requiresColons

requiresColons: boolean | undefined

Whether this emoji must be wrapped in colons

roles

roles: Collection<Snowflake, Role> | undefined

Collection of Roles this emoji is whitelisted to

user

user: User | undefined

The user that created this emoji

Accessors

id

  • get id(): string
  • Returns this emoji's identifier. An emoji identifier could be its name for built-in emojis, or a combination of its name and ID if it's a guild emoji.

    Returns string

Methods

clone

  • clone(): this

update

Static resolve

  • Finds the identifier of the given emoji. The emoji can be a Guild emoji, meaning we would have to search for it in the Bot's cached emojis Collection

    Parameters

    Returns string | null

Generated using TypeDoc