mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
Fixing MessageReaction#count always being 1 (#1857)
This commit is contained in:
@@ -14,7 +14,7 @@ class ReactionStore extends DataStore {
|
|||||||
create(data) {
|
create(data) {
|
||||||
const emojiID = data.emoji.id || decodeURIComponent(data.emoji.name);
|
const emojiID = data.emoji.id || decodeURIComponent(data.emoji.name);
|
||||||
|
|
||||||
const existing = this.get(data.id);
|
const existing = this.get(emojiID);
|
||||||
if (existing) return existing;
|
if (existing) return existing;
|
||||||
|
|
||||||
const reaction = new MessageReaction(this.message, data.emoji, data.count, data.me);
|
const reaction = new MessageReaction(this.message, data.emoji, data.count, data.me);
|
||||||
|
|||||||
Reference in New Issue
Block a user