docs: move event docstrings to the emitting line of code

This commit is contained in:
SpaceEEC
2018-11-27 21:28:36 +01:00
parent 1d1b3f25e1
commit fd21bbb7bf
21 changed files with 109 additions and 103 deletions

View File

@@ -2,5 +2,11 @@ const { Events } = require('../../../util/Constants');
module.exports = (client, packet) => {
const { user, reaction } = client.actions.MessageReactionAdd.handle(packet.d);
/**
* Emitted whenever a reaction is added to a cached message.
* @event Client#messageReactionAdd
* @param {MessageReaction} messageReaction The reaction object
* @param {User} user The user that applied the guild or reaction emoji
*/
if (reaction) client.emit(Events.MESSAGE_REACTION_ADD, reaction, user);
};