mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
Fix messageReactionAdd internally & doc fix (#1341)
This commit is contained in:
@@ -20,6 +20,6 @@ class MessageReactionRemoveAll extends Action {
|
|||||||
/**
|
/**
|
||||||
* Emitted whenever all reactions are removed from a message.
|
* Emitted whenever all reactions are removed from a message.
|
||||||
* @event Client#messageReactionRemoveAll
|
* @event Client#messageReactionRemoveAll
|
||||||
* @param {MessageReaction} messageReaction The reaction object.
|
* @param {Message} message The message the reactions were removed from.
|
||||||
*/
|
*/
|
||||||
module.exports = MessageReactionRemoveAll;
|
module.exports = MessageReactionRemoveAll;
|
||||||
|
|||||||
@@ -818,12 +818,7 @@ class RESTMethods {
|
|||||||
return this.rest.makeRequest(
|
return this.rest.makeRequest(
|
||||||
'put', Endpoints.Message(message).Reaction(emoji).User('@me'), true
|
'put', Endpoints.Message(message).Reaction(emoji).User('@me'), true
|
||||||
).then(() =>
|
).then(() =>
|
||||||
this.client.actions.MessageReactionAdd.handle({
|
message._addReaction(Util.parseEmoji(emoji), message.client.user)
|
||||||
user_id: this.client.user.id,
|
|
||||||
message_id: message.id,
|
|
||||||
emoji: Util.parseEmoji(emoji),
|
|
||||||
channel_id: message.channel.id,
|
|
||||||
}).reaction
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user