Skip to content

EmojiFormatter

A utility module that helps add emojis into messages.

Methods



Emoji(emojiName)

Returns a string that contains a regular Discord emoji.

Parameters

  • emojiName : string - The emoji's name.




CustomEmoji(emojiName, emojiId)

Returns a string that contains a custom Discord emoji.

Parameters

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




AnimatedEmoji(emojiName, emojiId)

Returns a string that contains an animated Discord emoji.

Parameters

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