mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
No longer double increment the reaction count when the client reacts (#1755)
This commit is contained in:
parent
a49709d329
commit
48b69c6e2f
1 changed files with 4 additions and 2 deletions
|
|
@ -548,8 +548,10 @@ class Message {
|
|||
reaction = new MessageReaction(this, emoji, 0, user.id === this.client.user.id);
|
||||
this.reactions.set(emojiID, reaction);
|
||||
}
|
||||
if (!reaction.users.has(user.id)) reaction.users.set(user.id, user);
|
||||
reaction.count++;
|
||||
if (!reaction.users.has(user.id)) {
|
||||
reaction.users.set(user.id, user);
|
||||
reaction.count++;
|
||||
}
|
||||
return reaction;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue