From 986b7ead9e9b3a85f230b4a15e3e30c96c520701 Mon Sep 17 00:00:00 2001 From: Tarrgon <61888458+Tarrgon@users.noreply.github.com> Date: Wed, 23 Jul 2025 21:55:47 -0400 Subject: [PATCH] Add default --- src/utils/event-log-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/event-log-utils.ts b/src/utils/event-log-utils.ts index 5e56ba9..de08f7e 100644 --- a/src/utils/event-log-utils.ts +++ b/src/utils/event-log-utils.ts @@ -64,7 +64,7 @@ export async function logCustomEvent(guild: Guild, data: CustomEventLogData) { channel.send({ embeds: [embed] }); } -async function getEventLogChannel(guild: Guild, channel: GuildBasedChannel | null): Promise { +async function getEventLogChannel(guild: Guild, channel: GuildBasedChannel | null = null): Promise { const settings = await Database.getGuildSettings(guild.id); if (!settings) return null;