Reformat using prettier
diff --git a/src/events/inviteCreate.ts b/src/events/inviteCreate.ts
index 34f66dc..240965c 100644
--- a/src/events/inviteCreate.ts
+++ b/src/events/inviteCreate.ts
@@ -6,11 +6,12 @@
export const event = "inviteCreate";
export async function callback(client: NucleusClient, invite: Invite) {
- if(!invite.guild) return; // This is a DM invite (not a guild invite
+ if (!invite.guild) return; // This is a DM invite (not a guild invite
const { getAuditLog, isLogging, log, NucleusColors, entry, renderUser, renderDelta, renderChannel } = client.logger;
- if (!await isLogging(invite.guild.id, "guildUpdate")) return;
- const auditLog = (await getAuditLog(invite.guild as Guild, AuditLogEvent.InviteCreate))
- .filter((entry: GuildAuditLogsEntry) => (entry.target as Invite)!.code === invite.code)[0]!;
+ if (!(await isLogging(invite.guild.id, "guildUpdate"))) return;
+ const auditLog = (await getAuditLog(invite.guild as Guild, AuditLogEvent.InviteCreate)).filter(
+ (entry: GuildAuditLogsEntry) => (entry.target as Invite)!.code === invite.code
+ )[0]!;
if (auditLog.executor!.id === client.user!.id) return;
const data = {
meta: {