Documented reaction events (#905)

This commit is contained in:
York
2016-11-17 07:18:03 +00:00
committed by Schuyler Cebulskie
parent 5ed8098af8
commit 1833a83664
3 changed files with 17 additions and 3 deletions

View File

@@ -34,5 +34,10 @@ class MessageReactionAdd extends Action {
};
}
}
/**
* Emitted whenever a reaction is added to a message.
* @event Client#messageReactionAdd.
* @param {MessageReaction} messageReaction The reaction object.
* @param {User} user The user that applied the emoji or reaction emoji.
*/
module.exports = MessageReactionAdd;

View File

@@ -34,5 +34,10 @@ class MessageReactionRemove extends Action {
};
}
}
/**
* Emitted whenever a reaction is removed from a message.
* @event Client#messageReactionRemove.
* @param {MessageReaction} messageReaction The reaction object.
* @param {User} user The user that removed the emoji or reaction emoji.
*/
module.exports = MessageReactionRemove;

View File

@@ -17,5 +17,9 @@ class MessageReactionRemoveAll extends Action {
};
}
}
/**
* Emitted whenever all reactions are removed from a message.
* @event Client#messageReactionRemoveAll.
* @param {MessageReaction} messageReaction The reaction object.
*/
module.exports = MessageReactionRemoveAll;