mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Documented reaction events (#905)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user