From 3e10ad3ff1f268f52966b5c66cd5152595ea5414 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 4 Apr 2021 23:56:32 -0500 Subject: [PATCH] Attempt to use identifier instead of ID --- bot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.js b/bot.js index 8f1405d..f12fbce 100644 --- a/bot.js +++ b/bot.js @@ -798,8 +798,8 @@ client.on('messageReactionAdd', (messageReaction, user) => { messageReaction.message.channel.messages.fetch(messageReaction.message.id) .then(message => { const emoji = messageReaction.emoji.name; - const emojiID = messageReaction.emoji.id; - const numEmoji = message.reactions.cache.get(emojiID).count; + const emojiIdentifier = messageReaction.emoji.identifier; + const numEmoji = message.reactions.cache.get(emojiIdentifier).count; const messageReactionAddEmbed = new Discord.MessageEmbed() .setTitle("Reaction Added") .setAuthor(message.author.tag, message.author.avatarURL())