mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix(MessageReaction): only delete reaction if cache and count is empty (#2661)
This commit is contained in:
parent
717e7f094a
commit
3a7a7d730b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue