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.EmojiDataasEmojiData()Converts thisReactionEmojito aEmojiData.StringasFormat()Gets the formatted version of this emoji (i.e., to display in the client).booleanequals(Object o)SnowflakegetId()Gets the id of the emoji.StringgetName()Gets the name of the emoji.inthashCode()booleanisAnimated()Gets whether this emoji is animated.StringtoString()-
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:ReactionEmojiConverts thisReactionEmojito aEmojiData.- Specified by:
asEmojiDatain classReactionEmoji- Returns:
- An
EmojiDatafor 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).
-
-