mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 21:42:05 +00:00
Fix remove reaction endpoint
This commit is contained in:
parent
50dc9addf1
commit
4c8e4fde6f
1 changed files with 2 additions and 2 deletions
|
|
@ -642,12 +642,12 @@ class RESTMethods {
|
|||
|
||||
removeMessageReaction(message, emoji, user) {
|
||||
let endpoint = Constants.Endpoints.selfMessageReaction(message.channel.id, message.id, emoji);
|
||||
if (user.id !== this.client.user.id) {
|
||||
if (user !== this.client.user.id) {
|
||||
endpoint = Constants.Endpoints.userMessageReaction(message.channel.id, message.id, emoji, null, user.id);
|
||||
}
|
||||
return this.rest.makeRequest('delete', endpoint, true).then(() =>
|
||||
this.client.actions.MessageReactionRemove.handle({
|
||||
user_id: user.id,
|
||||
user_id: user,
|
||||
message_id: message.id,
|
||||
emoji: parseEmoji(emoji),
|
||||
channel_id: message.channel.id,
|
||||
|
|
|
|||
Loading…
Reference in a new issue