From fb13aada88439da6fa53f4ac9e3a33a9a29d4bb4 Mon Sep 17 00:00:00 2001 From: Kayn Date: Mon, 24 Nov 2025 21:44:35 +0100 Subject: [PATCH] fix: improve null check for timeout duration parameter of repel command --- src/commands/moderation/repel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/moderation/repel.ts b/src/commands/moderation/repel.ts index bc8f0e5..a688927 100644 --- a/src/commands/moderation/repel.ts +++ b/src/commands/moderation/repel.ts @@ -431,7 +431,7 @@ export const repelCommand = createCommand({ const timeout = await handleTimeout({ target: target, - durationInMilliseconds: timeoutHours ? timeoutHours * HOUR : DEFAULT_TIMEOUT_DURATION_MS, + durationInMilliseconds: timeoutHours !== null ? timeoutHours * HOUR : DEFAULT_TIMEOUT_DURATION_MS, }); const channels = getTextChannels(interaction);