From 0c808b1c93836bc5fc055399a564c1772c8a0f96 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Mon, 5 Apr 2021 00:24:03 -0500 Subject: [PATCH] Use emoji instead of emoji.name to display emojis instead of their names --- bot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.js b/bot.js index 811b62e..79b553c 100644 --- a/bot.js +++ b/bot.js @@ -805,7 +805,7 @@ client.on('messageReactionAdd', (messageReaction, user) => { .setTitle("Reaction Added") .setAuthor(message.author.tag, message.author.avatarURL()) .addField("Link", `[Click here!](${message.url})`) - .addField("Reactions", `\`${user.tag}\` reacted with \`${emoji}\`, along with ${numEmoji - 1} other people in ${messageReaction.message.channel}.`) + .addField("Reactions", `\`${user.tag}\` reacted with ${messageReaction.emoji}, along with ${numEmoji - 1} other people in ${messageReaction.message.channel}.`) .setFooter("Message ID: " + messageReaction.message.id) .setThumbnail(message.author.avatarURL()) .setTimestamp() @@ -884,7 +884,7 @@ client.on('messageReactionRemove', (messageReaction, user) => { const messageReactionRemoveEmbed = new Discord.MessageEmbed() .setTitle("Reaction Removed") .addField("Link", `[Click here!](${message.url})`) - .addField("Reactions", `\`${user.tag}\` removed their reaction \`${emoji}\` in ${messageReaction.message.channel}.`) + .addField("Reactions", `\`${user.tag}\` removed their reaction ${messageReaction.emoji} in ${messageReaction.message.channel}.`) .setFooter("Message ID: " + messageReaction.message.id) .setThumbnail(message.author.avatarURL()) .setTimestamp()