From 375624e952b9fdfd7983d9accfbefc9658787bbc Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Mon, 5 Apr 2021 10:47:04 -0500 Subject: [PATCH] Allow for reactions on ban if you do not have admin perms --- bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.js b/bot.js index ae49069..9508c8b 100644 --- a/bot.js +++ b/bot.js @@ -500,7 +500,7 @@ async function ban(message) { verificationEmbed.react(''); verificationEmbed.react(''); const filter = (reaction, user) => { - return ['anim_check', 'anim_cross'].includes(reaction.emoji.name) && message.guild.members.cache.get(user.id).hasPermission('ADMINISTRATOR') && !user.bot; + return ['anim_check', 'anim_cross'].includes(reaction.emoji.name) && message.author.id === user.id && !user.bot; }; verificationEmbed.awaitReactions(filter, { max: 1 }) .then(userReaction => {