From ee6959d814729e9fa20db2ce5507c1474ffeb335 Mon Sep 17 00:00:00 2001 From: Navy Date: Sun, 20 Jun 2021 19:21:18 +0300 Subject: [PATCH] fix nolan's bs --- structure/client/components/observers/AuditLog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/structure/client/components/observers/AuditLog.js b/structure/client/components/observers/AuditLog.js index 80ad21e..cca4496 100644 --- a/structure/client/components/observers/AuditLog.js +++ b/structure/client/components/observers/AuditLog.js @@ -24,7 +24,7 @@ class AuditLogObserver extends Observer { } async guildBanAdd(guild, user) { - const settings = guild.settings(); + const settings = await guild.settings(); if(!settings.moderationLog.channel || !settings.moderationLog.infractions.includes('BAN')) return undefined; //This is checked by the infraction handling, but it may save resources if checked earlier. const audit = await this._fetchFirstEntry(guild, user, 'MEMBER_BAN_ADD'); if(!audit || audit.executor.id === this.client.user.id) return undefined; @@ -39,7 +39,7 @@ class AuditLogObserver extends Observer { } async guildBanRemove(guild, user) { - const settings = guild.settings(); + const settings = await guild.settings(); if(!settings.moderationLog.channel || !settings.moderationLog.infractions.includes('UNBAN')) return undefined; //This is checked by the infraction handling, but it may save resources if checked earlier. const audit = await this._fetchFirstEntry(guild, user, 'MEMBER_BAN_REMOVE'); if(!audit || audit.executor.id === this.client.user.id) return undefined;