Webpack build for branch master: 84aab1021a

This commit is contained in:
Travis CI 2017-04-11 17:11:17 +00:00
parent 9255da9cb7
commit c97ce09966
2 changed files with 9 additions and 9 deletions

View file

@ -13256,10 +13256,10 @@ class MessageReaction {
*/ */
remove(user = this.message.client.user) { remove(user = this.message.client.user) {
const message = this.message; const message = this.message;
user = this.message.client.resolver.resolveUserID(user); const userID = this.message.client.resolver.resolveUserID(user);
if (!user) return Promise.reject(new Error('Couldn\'t resolve the user ID to remove from the reaction.')); if (!userID) return Promise.reject(new Error('Couldn\'t resolve the user ID to remove from the reaction.'));
return message.client.rest.methods.removeMessageReaction( return message.client.rest.methods.removeMessageReaction(
message, this.emoji.identifier, user message, this.emoji.identifier, userID
); );
} }
@ -23095,11 +23095,11 @@ class RESTMethods {
); );
} }
removeMessageReaction(message, emoji, user) { removeMessageReaction(message, emoji, userID) {
const endpoint = Endpoints.Message(message).Reaction(emoji).User(user === this.client.user.id ? '@me' : user.id); const endpoint = Endpoints.Message(message).Reaction(emoji).User(userID === this.client.user.id ? '@me' : userID);
return this.rest.makeRequest('delete', endpoint, true).then(() => return this.rest.makeRequest('delete', endpoint, true).then(() =>
this.client.actions.MessageReactionRemove.handle({ this.client.actions.MessageReactionRemove.handle({
user_id: user, user_id: userID,
message_id: message.id, message_id: message.id,
emoji: Util.parseEmoji(emoji), emoji: Util.parseEmoji(emoji),
channel_id: message.channel.id, channel_id: message.channel.id,

File diff suppressed because one or more lines are too long