Reformat using prettier
diff --git a/src/events/threadUpdate.ts b/src/events/threadUpdate.ts
index af792bc..510ec30 100644
--- a/src/events/threadUpdate.ts
+++ b/src/events/threadUpdate.ts
@@ -7,9 +7,10 @@
export async function callback(client: NucleusClient, oldThread: ThreadChannel, newThread: ThreadChannel) {
const { getAuditLog, isLogging, log, NucleusColors, entry, renderUser, renderDelta, renderChannel } = client.logger;
- if (!await isLogging(newThread.guild.id, "channelUpdate")) return;
- const auditLog = (await getAuditLog(newThread.guild, AuditLogEvent.ThreadUpdate))
- .filter((entry: GuildAuditLogsEntry) => (entry.target as ThreadChannel)!.id === newThread.id)[0]!;
+ if (!(await isLogging(newThread.guild.id, "channelUpdate"))) return;
+ const auditLog = (await getAuditLog(newThread.guild, AuditLogEvent.ThreadUpdate)).filter(
+ (entry: GuildAuditLogsEntry) => (entry.target as ThreadChannel)!.id === newThread.id
+ )[0]!;
if (auditLog.executor!.id === client.user!.id) return;
const list: Record<string, ReturnType<typeof entry>> = {
threadId: entry(newThread.id, `\`${newThread.id}\``),