Skip to content

Commit

Permalink
fix(MessageReaction): do not increment count twice for own user
Browse files Browse the repository at this point in the history
Fixes #2389
  • Loading branch information
SpaceEEC committed Mar 10, 2018
1 parent 0f7ce3f commit 513dbf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/MessageReaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class MessageReaction {
_add(user) {
if (!this.users.has(user.id)) {
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;
}
Expand Down

0 comments on commit 513dbf2

Please sign in to comment.