Skip to content

EmojiResolver

EmojiResolver

A utility class for resolving and transforming emojis.

Kind: global class

EmojiResolver.transformEmoji(emoji, client) ⇒ string

Transforms an emoji object or string into a formatted emoji string.

Kind: static method of EmojiResolver
Returns: string - The formatted emoji string.
Throws:

  • RangeError If the emoji is not found in the emoji cache.
ParamTypeDescription
emojiObject | stringThe emoji object or string to transform.
clientClientThe Discord client instance.