mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 16:52:16 +00:00
parent
306ea97f99
commit
c73e501243
1 changed files with 1 additions and 1 deletions
|
|
@ -694,7 +694,7 @@ class RESTMethods {
|
||||||
removeMessageReaction(message, emoji, user) {
|
removeMessageReaction(message, emoji, user) {
|
||||||
let endpoint = Constants.Endpoints.selfMessageReaction(message.channel.id, message.id, emoji);
|
let endpoint = Constants.Endpoints.selfMessageReaction(message.channel.id, message.id, emoji);
|
||||||
if (user !== this.client.user.id) {
|
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(() =>
|
return this.rest.makeRequest('delete', endpoint, true).then(() =>
|
||||||
this.client.actions.MessageReactionRemove.handle({
|
this.client.actions.MessageReactionRemove.handle({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue