mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +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.users.delete(user.id);
|
||||||
reaction.count--;
|
reaction.count--;
|
||||||
if (user.id === this.client.user.id) reaction.me = false;
|
if (user.id === this.client.user.id) reaction.me = false;
|
||||||
|
if (reaction.count <= 0) this.reactions.delete(emojiID);
|
||||||
return reaction;
|
return reaction;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user