Fix RESTMethods.removeMessageReaction (fixes #1114) (#1126)

This commit is contained in:
Programmix
2017-01-21 16:48:17 -08:00
committed by Schuyler Cebulskie
parent 306ea97f99
commit c73e501243

View File

@@ -694,7 +694,7 @@ class RESTMethods {
removeMessageReaction(message, emoji, user) {
let endpoint = Constants.Endpoints.selfMessageReaction(message.channel.id, message.id, emoji);
if (user !== this.client.user.id) {
endpoint = Constants.Endpoints.userMessageReaction(message.channel.id, message.id, emoji, null, user.id);
endpoint = Constants.Endpoints.userMessageReaction(message.channel.id, message.id, emoji, null, user);
}
return this.rest.makeRequest('delete', endpoint, true).then(() =>
this.client.actions.MessageReactionRemove.handle({