Interface UnicodeEmoji

All Superinterfaces:
Emoji, Formattable, SerializableData

public interface UnicodeEmoji extends Emoji
Represents a standard unicode emoji such as 😃 (client alias: :smiley:).

This type only encapsulates the unicode character and is unaware of the human-readable aliases used by the discord client.

See Also:
  • Method Details

    • getAsCodepoints

      @Nonnull String getAsCodepoints()
      Converts the unicode name into codepoint notation like U+1F602.
      Returns:
      String containing the codepoint representation of the emoji
    • getType

      @Nonnull default Emoji.Type getType()
      Description copied from interface: Emoji
      The Emoji.Type of this emoji.
      Specified by:
      getType in interface Emoji
      Returns:
      The Emoji.Type
    • getFormatted

      @Nonnull default String getFormatted()
      Description copied from interface: Emoji
      Formatted string used in messages.
      For unicode emoji, this is simply Emoji.getName(). For custom emoji, this will be the mention markdown format <:name:id>.
      Specified by:
      getFormatted in interface Emoji
      Returns:
      The formatted message string