From 6fa0b92f2093ccb2b730d8f599ab3bcf7d703fa0 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Fri, 2 Apr 2021 19:32:51 -0500 Subject: [PATCH] Add ban feature --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 457b7c9..ed11d02 100644 --- a/index.js +++ b/index.js @@ -140,10 +140,10 @@ async function ban(message) { .then(userReaction => { const reaction = userReaction.first(); if (reaction.emoji.name === '👍') { - message.member.ban().catch(console.error); + message.member.ban().catch(() => message.channel.send(`Nevermind, I don't have the ability to ban ${member.user.username}, likely because their role is higher than mine.`)); message.reply(`${member} has been banned!`); } else { - message.reply("I guess you won't be getting that role!"); + message.reply("phew! ${member}'s safe!"); } }).catch("Role reaction timeout, I guess the mods don't really care about you and forgot."); }