mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
Fixing MessageReaction#count always being 1 (#1857)
This commit is contained in:
parent
b7c55f02c2
commit
4e028d713a
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ class ReactionStore extends DataStore {
|
|||
create(data) {
|
||||
const emojiID = data.emoji.id || decodeURIComponent(data.emoji.name);
|
||||
|
||||
const existing = this.get(data.id);
|
||||
const existing = this.get(emojiID);
|
||||
if (existing) return existing;
|
||||
|
||||
const reaction = new MessageReaction(this.message, data.emoji, data.count, data.me);
|
||||
|
|
|
|||
Loading…
Reference in a new issue