mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fix reactions not being uncached once they hit a count of 0
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user