diff --git a/structure/client/components/observers/AuditLog.js b/structure/client/components/observers/AuditLog.js index cca4496..c172c47 100644 --- a/structure/client/components/observers/AuditLog.js +++ b/structure/client/components/observers/AuditLog.js @@ -107,7 +107,8 @@ class AuditLogObserver extends Observer { } async _fetchFirstEntry(guild, user, type) { - const audit = await guild.fetchAuditLogs({ limit: 2 }); //Just incase >_> + if(!guild.me.hasPermission('VIEW_AUDIT_LOG')) return null; + const audit = await guild.fetchAuditLogs({ limit: 1 }); if(audit.entries.size === 0) return null; const entry = audit.entries.filter((e) => e?.target?.id === user.id).first();