mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 01:01:30 +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.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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue