From 371628e9087a2ea33df11a7d139833707a81b2b4 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Fri, 2 Apr 2021 15:42:16 -0500 Subject: [PATCH] Change messageReactionAdd embed name --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 00b3dee..76bd9d1 100644 --- a/index.js +++ b/index.js @@ -358,7 +358,7 @@ client.on('messageReactionAdd', (messageReaction, user) => { const numEmoji = messageReaction.count; const messageContent = messageReaction.message.content; let channelCategory; - const channelCreateEmbed = new Discord.MessageEmbed() + const messageReactionAddEmbed = new Discord.MessageEmbed() .setTitle("Reaction Added") .addField("Message", messageContent) .addField("Reactions", `${userTag} reacted with ${emoji}, along with ${numEmoji} other people in #${messageReaction.message.channel.name}.`) @@ -371,7 +371,7 @@ client.on('messageReactionAdd', (messageReaction, user) => { } botLogsChannel = result.bot_logs_id; if (messageReaction.message.guild.channels.cache.get(botLogsChannel)) { - messageReaction.message.guild.channels.cache.get(botLogsChannel).send(channelCreateEmbed).catch(console.error); + messageReaction.message.guild.channels.cache.get(botLogsChannel).send(messageReactionAddEmbed).catch(console.error); } }); });