From 2fcde46328b4734324afb7c4f3aff336c6484e1c Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Fri, 25 Nov 2022 20:49:12 +1100 Subject: [PATCH] bru #3 --- src/events/guildBanAdd.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/events/guildBanAdd.ts b/src/events/guildBanAdd.ts index 97e77b9..feb08b7 100644 --- a/src/events/guildBanAdd.ts +++ b/src/events/guildBanAdd.ts @@ -3,6 +3,7 @@ import { TClient } from '../client'; export default { name: 'guildBanAdd', execute: async(client:TClient, member:Discord.GuildMember)=>{ + if (member.guild?.id != client.config.mainServer.id) return; const fetchBanlog = await member.guild.fetchAuditLogs({ limit: 1, type: AuditLogEvent.MemberBanAdd @@ -20,4 +21,4 @@ export default { console.log(`${target.tag} was banned from ${member.guild.name} but no audit log could be fetched.`) } } -} \ No newline at end of file +}