Fixing MessageReaction#count always being 1 (#1857)

This commit is contained in:
SpaceEEC
2017-08-30 13:01:27 +02:00
committed by Crawl
parent b7c55f02c2
commit 4e028d713a

View File

@@ -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);