Add Message Reaction me

This commit is contained in:
Amish Shah
2016-10-27 16:30:02 +01:00
parent d129457624
commit 8e505ed349
2 changed files with 27 additions and 3 deletions

View File

@@ -55,13 +55,17 @@ class ReactionEmoji {
* Represents a reaction to a message
*/
class MessageReaction {
constructor(message, emoji, count) {
constructor(message, emoji, count, me) {
/**
* The message that this reaction refers to
* @type {Message}
*/
this.message = message;
/**
* Whether the client has given this reaction
* @type {boolean}
*/
this.me = me;
this._emoji = new ReactionEmoji(this, emoji.name, emoji.id);
/**
* The number of people that have given the same reaction.