From 0175eb8d962f2c63bf13c6adc7cff051069c9d72 Mon Sep 17 00:00:00 2001 From: Tarrgon <61888458+Tarrgon@users.noreply.github.com> Date: Sat, 13 Sep 2025 10:57:21 -0400 Subject: [PATCH] Fix channels appearing twice --- src/utils/audit-log-utils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/audit-log-utils.ts b/src/utils/audit-log-utils.ts index dda15bb..a3dc77f 100644 --- a/src/utils/audit-log-utils.ts +++ b/src/utils/audit-log-utils.ts @@ -76,7 +76,10 @@ export function formatExtras(entry: GuildAuditLogsEntry, guild: Guild): string { for (const [key, value] of Object.entries(reserialized.extra ?? {})) { if (!value) continue; - if (key == 'channel_id' || key == 'channel') results.push(formatSnowflake(value as string, TargetType.Channel)); + if (key == 'channel_id' || key == 'channel') { + results.push(`channel: ${formatSnowflake(value as string, TargetType.Channel)}`); + continue; + } results.push(`${key}: ${value}`); }