mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 06:31:20 +00:00
Fix messageReactionAdd internally & doc fix (#1341)
This commit is contained in:
parent
970bfffc46
commit
6ce24398ab
2 changed files with 2 additions and 7 deletions
|
|
@ -20,6 +20,6 @@ class MessageReactionRemoveAll extends Action {
|
|||
/**
|
||||
* Emitted whenever all reactions are removed from a message.
|
||||
* @event Client#messageReactionRemoveAll
|
||||
* @param {MessageReaction} messageReaction The reaction object.
|
||||
* @param {Message} message The message the reactions were removed from.
|
||||
*/
|
||||
module.exports = MessageReactionRemoveAll;
|
||||
|
|
|
|||
|
|
@ -818,12 +818,7 @@ class RESTMethods {
|
|||
return this.rest.makeRequest(
|
||||
'put', Endpoints.Message(message).Reaction(emoji).User('@me'), true
|
||||
).then(() =>
|
||||
this.client.actions.MessageReactionAdd.handle({
|
||||
user_id: this.client.user.id,
|
||||
message_id: message.id,
|
||||
emoji: Util.parseEmoji(emoji),
|
||||
channel_id: message.channel.id,
|
||||
}).reaction
|
||||
message._addReaction(Util.parseEmoji(emoji), message.client.user)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue