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
public static final class ReactionEmoji.Custom extends ReactionEmoji
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class discord4j.core.object.reaction.ReactionEmoji
ReactionEmoji.Custom, ReactionEmoji.Unicode
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description discord4j.discordjson.json.EmojiData
asEmojiData()
Converts thisReactionEmoji
to aEmojiData
.String
asFormat()
Gets the formatted version of this emoji (i.e., to display in the client).boolean
equals(Object o)
Snowflake
getId()
Gets the id of the emoji.String
getName()
Gets the name of the emoji.int
hashCode()
boolean
isAnimated()
Gets whether this emoji is animated.String
toString()
-
Methods inherited from class discord4j.core.object.reaction.ReactionEmoji
asCustomEmoji, asUnicodeEmoji, codepoints, custom, custom, of, of, of, unicode
-
-
-
-
Method Detail
-
getId
public Snowflake getId()
Gets the id of the emoji.- Returns:
- The id of the emoji.
-
getName
public String 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
public String asFormat()
Gets the formatted version of this emoji (i.e., to display in the client).- Returns:
- The formatted version of this emoji (i.e., to display in the client).
-
-