From ba11f762842cf60f0ccaf09af31c7cf7cc9d3376 Mon Sep 17 00:00:00 2001 From: Programmix Date: Thu, 26 Jan 2017 13:20:40 -0800 Subject: [PATCH] Fix patching message reactions (fixes #1071) (#1137) --- src/structures/Message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Message.js b/src/structures/Message.js index 45e7d7efe..be352b730 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -232,7 +232,7 @@ class Message { if (data.reactions.length > 0) { for (const reaction of data.reactions) { const id = reaction.emoji.id ? `${reaction.emoji.name}:${reaction.emoji.id}` : reaction.emoji.name; - this.reactions.set(id, new MessageReaction(this, data.emoji, data.count, data.me)); + this.reactions.set(id, new MessageReaction(this, reaction.emoji, reaction.count, reaction.me)); } } }