Skip to content

EmojiFormatter

Methods


EmojiFormatter.emoji(emojiName : string) : string

Returns the string representation of a regular Discord emoji.

Parameters

  • emojiName: The emoji's name.




EmojiFormatter.customEmoji(emojiName : string, emojiId : string) : string

Returns the string representation of a custom Discord emoji.

Parameters

  • emojiName: The emoji's name.
  • emojiId: The emoji's id.




EmojiFormatter.animatedEmoji(emojiName : string, emojiId : string) : string

Returns the string representation of an animated Discord emoji.

Parameters

  • emojiName: The emoji's name.
  • emojiId: The emoji's id.