Fix reactions not being uncached once they hit a count of 0

This commit is contained in:
Amish Shah
2017-04-12 21:22:08 +01:00
parent dce8e83465
commit 78895ace17

View File

@@ -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;
}
}