From 4e028d713a5830490936536d85994b4a7df0c3f3 Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Wed, 30 Aug 2017 13:01:27 +0200 Subject: [PATCH] Fixing MessageReaction#count always being 1 (#1857) --- src/stores/ReactionStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/ReactionStore.js b/src/stores/ReactionStore.js index b94aae619..276b69e5a 100644 --- a/src/stores/ReactionStore.js +++ b/src/stores/ReactionStore.js @@ -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);