fix(MessageReaction): do not increment count twice for own user

Fixes #2389
This commit is contained in:
Pascal
2018-03-10 14:11:33 +01:00
parent 0f7ce3f720
commit 513dbf2f68

View File

@@ -64,7 +64,7 @@ class MessageReaction {
_add(user) { _add(user) {
if (!this.users.has(user.id)) { if (!this.users.has(user.id)) {
this.users.set(user.id, user); this.users.set(user.id, user);
this.count++; if (!this.me || user.id !== this.message.client.user.id) this.count++;
} }
if (!this.me) this.me = user.id === this.message.client.user.id; if (!this.me) this.me = user.id === this.message.client.user.id;
} }