mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
fix(MessageReaction): do not increment count twice for own user
Fixes #2389
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user