From ac87b260513126bb51c9af67872d5a72203eaccc Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Fri, 2 Apr 2021 15:37:14 -0500 Subject: [PATCH] Use messageReaction.count instead of messageReaction.emoji.count --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 7746868..caac90b 100644 --- a/index.js +++ b/index.js @@ -355,13 +355,13 @@ client.on('channelCreate', channel => { client.on('messageReactionAdd', (messageReaction, user) => { const userTag = user.tag; const emoji = messageReaction.emoji.name; - const numEmoji = messageReaction.emoji.count; + const numEmoji = messageReaction.count; const messageContent = messageReaction.message.content; let channelCategory; const channelCreateEmbed = new Discord.MessageEmbed() .setTitle("Reaction Added") .addField("Message", messageContent) - .addField("Reactions", `${userTag} reacted with ${emoji}, along with ${numEmoji - 1} other people in ${messageReaction.message.channel.name}.`) + .addField("Reactions", `${userTag} reacted with ${emoji}, along with ${numEmoji - 1} other people in #${messageReaction.message.channel.name}.`) .setFooter("Emoji ID: " + messageReaction.emoji.id) .setTimestamp() .setColor('00aaff');