From 856c48d8471f51ce02f99b5ddd35610fc5a2a63e Mon Sep 17 00:00:00 2001 From: Phil Date: Sun, 7 Jul 2024 19:28:44 +0200 Subject: [PATCH] do not add users to ban list if bot --- functions/EVENT/guildBanAdd.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions/EVENT/guildBanAdd.js b/functions/EVENT/guildBanAdd.js index 17fcf4f..ea0a822 100644 --- a/functions/EVENT/guildBanAdd.js +++ b/functions/EVENT/guildBanAdd.js @@ -64,6 +64,8 @@ module.exports.run = async ({ guild, user }) => { const userTag = user.tag; const serverID = guild.id; + // check if member is a bot + if (user.bot) return; // checking if user is AB if (userID === client.user.id) return; // check if server is blacklsited before sending api request