mirror of
https://github.com/danbulant/discord.js
synced 2026-06-05 07:42:09 +00:00
fix(MessageReaction): do not increment count twice for own user
Fixes #2389
This commit is contained in:
parent
0f7ce3f720
commit
513dbf2f68
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue