From 87da43d48911208515ff3c19b6ede00166610ed1 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Wed, 31 Mar 2021 21:26:33 -0500 Subject: [PATCH] Use reaction.emoji.name instead of reaction.emoji --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f168316..d4a03c7 100644 --- a/index.js +++ b/index.js @@ -40,7 +40,7 @@ async function roleRequest(message) { message.awaitReactions(filter, { max: 1, time: 600000000, errors: ['time'] }) .then(userReaction => { const reaction = userReaction.first(); - if (reaction.emoji === '👍') { + if (reaction.emoji.name === '👍') { message.reply("wow I guess you ARE worthy! ||mods must be real mistaken||"); if (role === 'reader') { message.member.roles.add(readerRole).catch(console.error);