mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
fix(MessageReaction): only delete reaction if cache and count is empty (#2661)
This commit is contained in:
@@ -71,7 +71,7 @@ class MessageReaction {
|
||||
this.users.delete(user.id);
|
||||
if (!this.me || user.id !== this.message.client.user.id) this.count--;
|
||||
if (user.id === this.message.client.user.id) this.me = false;
|
||||
if (this.count <= 0) {
|
||||
if (this.count <= 0 && this.users.size === 0) {
|
||||
this.message.reactions.remove(this.emoji.id || this.emoji.name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user