public final class Reaction extends Object implements DiscordObject
Constructor and Description |
---|
Reaction(ServiceMediator serviceMediator,
ReactionBean data)
Constructs a
Reaction with an associated ServiceMediator and Discord data. |
Modifier and Type | Method and Description |
---|---|
DiscordClient |
getClient()
Gets the DiscordClient associated to this object.
|
int |
getCount()
Gets the number of people who reacted with this reaction's emoji.
|
ReactionEmoji |
getEmoji()
Gets this reaction's emoji.
|
boolean |
selfReacted()
Gets whether the current bot user reacted using this reaction's emoji.
|
String |
toString() |
public Reaction(ServiceMediator serviceMediator, ReactionBean data)
Reaction
with an associated ServiceMediator and Discord data.serviceMediator
- The ServiceMediator associated to this object, must be non-null.data
- The raw data as represented by Discord, must be non-null.public DiscordClient getClient()
DiscordObject
getClient
in interface DiscordObject
public int getCount()
public boolean selfReacted()
public ReactionEmoji getEmoji()