From 405b89324a341447c86438c0960a8d0a193fa492 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Fri, 2 Apr 2021 21:10:56 -0500 Subject: [PATCH] Use .then() for role add confirmation --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 1e82b15..c062261 100644 --- a/index.js +++ b/index.js @@ -313,8 +313,7 @@ async function roleRequest(message) { .then(userReaction => { const reaction = userReaction.first(); if (reaction.emoji.name === '👍') { - message.reply("wow I guess you ARE worthy! ||mods must be real mistaken||"); - message.member.roles.add(role).catch(() => { message.reply("It seems I don't have permissions to give that role, as it's likely above me :(") }); + message.member.roles.add(role).then(message.reply("wow I guess you ARE worthy! ||mods must be real mistaken||")).catch(() => { message.reply("It seems I don't have permissions to give that role, as it's likely above me :(") }); } else { message.reply("I guess you won't be getting that role!"); }