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;