Skip to content

Commit

Permalink
do not add users to ban list if bot
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-flip committed Jul 7, 2024
1 parent e8d0c50 commit 856c48d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/EVENT/guildBanAdd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 856c48d

Please sign in to comment.