Interface UnicodeEmoji
- All Superinterfaces:
Emoji,Formattable,SerializableData
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.entities.emoji.Emoji
Emoji.Type -
Method Summary
Modifier and TypeMethodDescriptionConverts the unicode name into codepoint notation likeU+1F602.default StringFormatted string used in messages.default Emoji.TypegetType()TheEmoji.Typeof this emoji.Methods inherited from interface net.dv8tion.jda.api.entities.emoji.Emoji
formatTo, getAsReactionCode, getNameMethods inherited from interface net.dv8tion.jda.api.utils.data.SerializableData
toData
-
Method Details
-
getAsCodepoints
Converts the unicode name into codepoint notation likeU+1F602.- Returns:
- String containing the codepoint representation of the emoji
-
getType
Description copied from interface:EmojiTheEmoji.Typeof this emoji.- Specified by:
getTypein interfaceEmoji- Returns:
- The
Emoji.Type
-
getFormatted
Description copied from interface:EmojiFormatted string used in messages.
For unicode emoji, this is simplyEmoji.getName(). For custom emoji, this will be the mention markdown format<:name:id>.- Specified by:
getFormattedin interfaceEmoji- Returns:
- The formatted message string
-