mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
committed by
Schuyler Cebulskie
parent
306ea97f99
commit
c73e501243
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user