Reformat using prettier
diff --git a/src/events/guildBanRemove.ts b/src/events/guildBanRemove.ts
index 3be4560..fc916ba 100644
--- a/src/events/guildBanRemove.ts
+++ b/src/events/guildBanRemove.ts
@@ -6,9 +6,10 @@
export async function callback(client: NucleusClient, ban: GuildBan) {
const { log, isLogging, NucleusColors, entry, renderUser, renderDelta, getAuditLog } = client.logger;
- if (!await isLogging(ban.guild.id, "guildMemberPunish")) return;
- const auditLog = (await getAuditLog(ban.guild, AuditLogEvent.MemberBanRemove))
- .filter((entry: GuildAuditLogsEntry) => ((entry.target! as User).id === ban.user.id))[0];
+ if (!(await isLogging(ban.guild.id, "guildMemberPunish"))) return;
+ const auditLog = (await getAuditLog(ban.guild, AuditLogEvent.MemberBanRemove)).filter(
+ (entry: GuildAuditLogsEntry) => (entry.target! as User).id === ban.user.id
+ )[0];
if (!auditLog) return;
if (auditLog.executor!.id === client.user!.id) return;
await client.database.history.create("unban", ban.guild.id, ban.user, auditLog.executor, auditLog.reason);