Package net.dv8tion.jda.core.entities
Class MessageReaction.ReactionEmote
- java.lang.Object
-
- net.dv8tion.jda.core.entities.MessageReaction.ReactionEmote
-
- All Implemented Interfaces:
ISnowflake
- Enclosing class:
- MessageReaction
public static class MessageReaction.ReactionEmote extends java.lang.Object implements ISnowflake
Represents an Emoji/Emote of a MessageReaction
This is used to wrap both emojis and emotes
-
-
Constructor Summary
Constructors Constructor Description ReactionEmote(java.lang.String name, java.lang.Long id, JDA api)
ReactionEmote(Emote emote)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Emote
getEmote()
The instance ofEmote
for the Reaction instance.java.lang.String
getId()
The Snowflake id of this entity.long
getIdLong()
The Snowflake id of this entity.JDA
getJDA()
The current JDA instance for the Reactionjava.lang.String
getName()
The name for this emote/emoji
For unicode emojis this will be the unicode of said emoji.boolean
isEmote()
Whether this is anEmote
wrapper.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.dv8tion.jda.core.entities.ISnowflake
getCreationTime
-
-
-
-
Method Detail
-
isEmote
public boolean isEmote()
Whether this is anEmote
wrapper.- Returns:
- True, if
getId()
is not null
-
getId
public java.lang.String getId()
Description copied from interface:ISnowflake
The Snowflake id of this entity. This is unique to every entity and will never change.- Specified by:
getId
in interfaceISnowflake
- Returns:
- Never-null String containing the Id.
-
getIdLong
public long getIdLong()
Description copied from interface:ISnowflake
The Snowflake id of this entity. This is unique to every entity and will never change.- Specified by:
getIdLong
in interfaceISnowflake
- Returns:
- Long containing the Id.
-
getName
public java.lang.String getName()
The name for this emote/emoji
For unicode emojis this will be the unicode of said emoji.- Returns:
- The name for this emote/emoji
-
getEmote
public Emote getEmote()
- Returns:
- The possibly-null Emote for the Reaction instance
-
getJDA
public JDA getJDA()
The current JDA instance for the Reaction- Returns:
- The JDA instance of the Reaction
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-