Fix messageReactionAdd internally & doc fix (#1341)

This commit is contained in:
SpaceEEC
2017-04-05 21:34:14 +02:00
committed by Crawl
parent 970bfffc46
commit 6ce24398ab
2 changed files with 2 additions and 7 deletions

View File

@@ -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;

View File

@@ -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)
);
}