mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
fix(ReactionUserStore): remove method firing messageReactionRemove event twice (#3277)
This commit is contained in:
parent
12b48b7cbb
commit
1851f74770
1 changed files with 1 additions and 8 deletions
|
|
@ -48,14 +48,7 @@ class ReactionUserStore extends DataStore {
|
|||
return message.client.api.channels[message.channel.id].messages[message.id]
|
||||
.reactions[this.reaction.emoji.identifier][userID === message.client.user.id ? '@me' : userID]
|
||||
.delete()
|
||||
.then(() =>
|
||||
message.client.actions.MessageReactionRemove.handle({
|
||||
user_id: userID,
|
||||
message_id: message.id,
|
||||
emoji: this.reaction.emoji,
|
||||
channel_id: message.channel.id,
|
||||
}).reaction
|
||||
);
|
||||
.then(() => this.reaction);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue