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