From 01c544aee7b2cfcecf58b3c55d049514ccfe2935 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sat, 3 Apr 2021 13:23:04 -0500 Subject: [PATCH] Use mesasge.channel instead of message.channel.name --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a7b9866..847b038 100644 --- a/index.js +++ b/index.js @@ -666,7 +666,7 @@ client.on('messageReactionAdd', (messageReaction, user) => { .setTitle("Reaction Added") .setURL(messageReaction.message.url) .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}.`) .setFooter("Message ID: " + messageReaction.message.id) .setTimestamp() .setColor('00aaff'); @@ -711,7 +711,7 @@ client.on('messageReactionRemove', (messageReaction, user) => { .setTitle("Reaction Removed") .setURL(messageReaction.message.url) .addField("Message", messageContent) - .addField("Reactions", `${userTag} removed their reaction ${emoji} in #${messageReaction.message.channel.name}.`) + .addField("Reactions", `${userTag} removed their reaction ${emoji} in ${messageReaction.message.channel}.`) .setFooter("Message ID: " + messageReaction.message.id) .setTimestamp() .setColor('e7778b');