From 1582ebec3553a078ad349215500ebf4f81dbf6e5 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 4 Apr 2021 22:30:10 -0500 Subject: [PATCH] Remove await for emoji count --- bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.js b/bot.js index f9b0a76..a2ee66b 100644 --- a/bot.js +++ b/bot.js @@ -777,7 +777,7 @@ client.on('messageReactionAdd', (messageReaction, user) => { messageReaction.message.channel.messages.fetch(messageReaction.message.id) .then(message => { const emoji = messageReaction.emoji.name; - const numEmoji = await message.reactions.cache.get(emoji).count; + const numEmoji = message.reactions.cache.get(emoji).count; const messageReactionAddEmbed = new Discord.MessageEmbed() .setTitle("Reaction Added") .setAuthor(message.author.tag, message.author.avatarURL())