mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 00:32:03 +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);
|
reaction = new MessageReaction(this, emoji, 0, user.id === this.client.user.id);
|
||||||
this.reactions.set(emojiID, reaction);
|
this.reactions.set(emojiID, reaction);
|
||||||
}
|
}
|
||||||
if (!reaction.users.has(user.id)) reaction.users.set(user.id, user);
|
if (!reaction.users.has(user.id)) {
|
||||||
reaction.count++;
|
reaction.users.set(user.id, user);
|
||||||
|
reaction.count++;
|
||||||
|
}
|
||||||
return reaction;
|
return reaction;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue