Package discord4j.core.object.reaction
Class ReactionEmoji.Custom
java.lang.Object
discord4j.core.object.reaction.ReactionEmoji
discord4j.core.object.reaction.ReactionEmoji.Custom
- Enclosing class:
- ReactionEmoji
-
Nested Class Summary
Nested classes/interfaces inherited from class discord4j.core.object.reaction.ReactionEmoji
ReactionEmoji.Custom, ReactionEmoji.Unicode
-
Method Summary
Modifier and TypeMethodDescriptiondiscord4j.discordjson.json.EmojiData
Converts thisReactionEmoji
to aEmojiData
.asFormat()
Gets the formatted version of this emoji (i.e., to display in the client).static String
Gets the formatted version of this emoji (i.e., to display in the client).boolean
getId()
Gets the id of the emoji.getName()
Gets the name of the emoji.int
hashCode()
boolean
Gets whether this emoji is animated.toString()
Methods inherited from class discord4j.core.object.reaction.ReactionEmoji
asCustomEmoji, asUnicodeEmoji, codepoints, custom, custom, of, of, of, unicode
-
Method Details
-
getId
Gets the id of the emoji.- Returns:
- The id of the emoji.
-
getName
Gets the name of the emoji.- Returns:
- The name of the emoji.
-
isAnimated
public boolean isAnimated()Gets whether this emoji is animated.- Returns:
- Whether this emoji is animated.
-
asEmojiData
public discord4j.discordjson.json.EmojiData asEmojiData()Description copied from class:ReactionEmoji
Converts thisReactionEmoji
to aEmojiData
.- Specified by:
asEmojiData
in classReactionEmoji
- Returns:
- An
EmojiData
for this emoji.
-
asFormat
Description copied from class:ReactionEmoji
Gets the formatted version of this emoji (i.e., to display in the client).- Specified by:
asFormat
in classReactionEmoji
- Returns:
- The formatted version of this emoji (i.e., to display in the client).
-
asFormat
Gets the formatted version of this emoji (i.e., to display in the client).- Parameters:
isAnimated
- Whether the emoji is animated.id
- The ID of the custom emoji.name
- The name of the custom emoji.- Returns:
- The formatted version of this emoji (i.e., to display in the client).
-
toString
-
equals
-
hashCode
public int hashCode()
-