From 2611efe9c1c592f33a27d419b06cc817214843f4 Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Thu, 10 Aug 2017 01:21:34 +0200 Subject: [PATCH] No longer double increment the reaction count when the client reacts (#1755) --- src/structures/Message.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/structures/Message.js b/src/structures/Message.js index 093da2be1..8e986114b 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -543,8 +543,10 @@ class Message { reaction = new MessageReaction(this, emoji, 0, user.id === this.client.user.id); this.reactions.set(emojiID, reaction); } - if (!reaction.users.has(user.id)) reaction.users.set(user.id, user); - reaction.count++; + if (!reaction.users.has(user.id)) { + reaction.users.set(user.id, user); + reaction.count++; + } return reaction; }