mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
Fix reactions not being uncached once they hit a count of 0
This commit is contained in:
parent
dce8e83465
commit
78895ace17
1 changed files with 1 additions and 0 deletions
|
|
@ -513,6 +513,7 @@ class Message {
|
|||
reaction.users.delete(user.id);
|
||||
reaction.count--;
|
||||
if (user.id === this.client.user.id) reaction.me = false;
|
||||
if (reaction.count <= 0) this.reactions.delete(emojiID);
|
||||
return reaction;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue