Add default

This commit is contained in:
Tarrgon
2025-07-23 21:55:47 -04:00
parent ef48c1d8d2
commit 986b7ead9e
+1 -1
View File
@@ -64,7 +64,7 @@ export async function logCustomEvent(guild: Guild, data: CustomEventLogData) {
channel.send({ embeds: [embed] }); channel.send({ embeds: [embed] });
} }
async function getEventLogChannel(guild: Guild, channel: GuildBasedChannel | null): Promise<GuildTextBasedChannel | null> { async function getEventLogChannel(guild: Guild, channel: GuildBasedChannel | null = null): Promise<GuildTextBasedChannel | null> {
const settings = await Database.getGuildSettings(guild.id); const settings = await Database.getGuildSettings(guild.id);
if (!settings) return null; if (!settings) return null;