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.
- See Also:
-
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 String
Formatted string used in messages.default Emoji.Type
getType()
TheEmoji.Type
of this emoji.Methods inherited from interface net.dv8tion.jda.api.entities.emoji.Emoji
formatTo, getAsReactionCode, getName
Methods 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:Emoji
TheEmoji.Type
of this emoji.- Specified by:
getType
in interfaceEmoji
- Returns:
- The
Emoji.Type
-
getFormatted
Description copied from interface:Emoji
Formatted 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:
getFormatted
in interfaceEmoji
- Returns:
- The formatted message string
-