Class UnicodeEmojiImpl
java.lang.Object
net.dv8tion.jda.internal.entities.emoji.UnicodeEmojiImpl
- All Implemented Interfaces:
Formattable
,Emoji
,EmojiUnion
,UnicodeEmoji
,SerializableData
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.entities.emoji.Emoji
Emoji.Type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the underlyingApplicationEmoji
if applicable.asCustom()
Returns the underlyingCustomEmoji
if applicable.asRich()
Returns the underlyingRichCustomEmoji
if applicable.Returns the underlyingUnicodeEmoji
if applicable.boolean
Converts the unicode name into codepoint notation likeU+1F602
.The reaction code for this emoji.getName()
The name of this emoji.int
hashCode()
toData()
SerializedDataObject
for this object.toString()
Methods inherited from interface net.dv8tion.jda.api.entities.emoji.UnicodeEmoji
getFormatted, getType
-
Constructor Details
-
UnicodeEmojiImpl
-
-
Method Details
-
getName
Description copied from interface:Emoji
The name of this emoji.
This will be the unicode characters if this emoji is not ofEmoji.getType()
CUSTOM
. -
getAsReactionCode
Description copied from interface:Emoji
The reaction code for this emoji.
For unicode emojis this will be the unicode of said emoji rather than an alias like:smiley:
.
For custom emojis this will be the name and id of said emoji in the format<name>:<id>
.- Specified by:
getAsReactionCode
in interfaceEmoji
- Returns:
- The unicode if it is an emoji, or the name and id in the format
<name>:<id>
-
getAsCodepoints
Description copied from interface:UnicodeEmoji
Converts the unicode name into codepoint notation likeU+1F602
.- Specified by:
getAsCodepoints
in interfaceUnicodeEmoji
- Returns:
- String containing the codepoint representation of the emoji
-
toData
Description copied from interface:SerializableData
SerializedDataObject
for this object.- Specified by:
toData
in interfaceSerializableData
- Returns:
DataObject
-
hashCode
public int hashCode() -
equals
-
toString
-
asUnicode
Description copied from interface:EmojiUnion
Returns the underlyingUnicodeEmoji
if applicable.- Specified by:
asUnicode
in interfaceEmojiUnion
- Returns:
- The
UnicodeEmoji
-
asCustom
Description copied from interface:EmojiUnion
Returns the underlyingCustomEmoji
if applicable.- Specified by:
asCustom
in interfaceEmojiUnion
- Returns:
- The
CustomEmoji
-
asRich
Description copied from interface:EmojiUnion
Returns the underlyingRichCustomEmoji
if applicable.- Specified by:
asRich
in interfaceEmojiUnion
- Returns:
- The
RichCustomEmoji
-
asApplication
Description copied from interface:EmojiUnion
Returns the underlyingApplicationEmoji
if applicable.- Specified by:
asApplication
in interfaceEmojiUnion
- Returns:
- The
ApplicationEmoji
-