From 8d21d9a5b99aae0ef83b45ba0346b7a8f6729611 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Fri, 2 Apr 2021 15:47:29 -0500 Subject: [PATCH] Use message ID instead of emoji ID --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 61da744..931856a 100644 --- a/index.js +++ b/index.js @@ -362,7 +362,7 @@ client.on('messageReactionAdd', (messageReaction, user) => { .setTitle("Reaction Added") .addField("Message", messageContent) .addField("Reactions", `${userTag} reacted with ${emoji}, along with ${numEmoji} other people in #${messageReaction.message.channel.name}.`) - .setFooter("Emoji ID: " + messageReaction.emoji.id) + .setFooter("Message ID: " + messageReaction.message.id) .setTimestamp() .setColor('00aaff'); collection.findOne({ guild_id: messageReaction.message.guild.id}, (error, result) => { @@ -385,7 +385,7 @@ client.on('messageReactionRemove', (messageReaction, user) => { .setTitle("Reaction Added") .addField("Message", messageContent) .addField("Reactions", `${userTag} removed their reaction ${emoji} in #${messageReaction.message.channel.name}.`) - .setFooter("Emoji ID: " + messageReaction.emoji.id) + .setFooter("Message ID: " + messageReaction.message.id) .setTimestamp() .setColor('00aaff'); collection.findOne({ guild_id: messageReaction.message.guild.id}, (error, result) => {