From fb3cf7f75103b45601781c9249e8114317584fa0 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Sat, 26 Nov 2022 19:13:35 +1100 Subject: [PATCH] it spammed in main server's log channel. --- src/events/roleUpdate.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/events/roleUpdate.ts b/src/events/roleUpdate.ts index 98fc0f8..ee8430c 100644 --- a/src/events/roleUpdate.ts +++ b/src/events/roleUpdate.ts @@ -3,6 +3,7 @@ import { TClient } from '../client'; export default { name: 'roleUpdate', execute: async(client:TClient, oldRole:Discord.Role, newRole:Discord.Role)=>{ + if (oldRole.guild?.id != client.config.mainServer.id) return; const fetchRoleUpdoot = await client.guilds.cache.get(oldRole.guild.id).fetchAuditLogs({ limit: 1, type: AuditLogEvent.RoleUpdate