mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 17:43:30 +01:00
reaction remove fix (#1366)
This commit is contained in:
@@ -815,11 +815,11 @@ class RESTMethods {
|
||||
);
|
||||
}
|
||||
|
||||
removeMessageReaction(message, emoji, user) {
|
||||
const endpoint = Endpoints.Message(message).Reaction(emoji).User(user === this.client.user.id ? '@me' : user.id);
|
||||
removeMessageReaction(message, emoji, userID) {
|
||||
const endpoint = Endpoints.Message(message).Reaction(emoji).User(userID === this.client.user.id ? '@me' : userID);
|
||||
return this.rest.makeRequest('delete', endpoint, true).then(() =>
|
||||
this.client.actions.MessageReactionRemove.handle({
|
||||
user_id: user,
|
||||
user_id: userID,
|
||||
message_id: message.id,
|
||||
emoji: Util.parseEmoji(emoji),
|
||||
channel_id: message.channel.id,
|
||||
|
||||
Reference in New Issue
Block a user