Skip to content

Commit fbd4a77

Browse files
authored
fix: improve null check for timeout duration parameter of repel command (#42)
1 parent fcc0789 commit fbd4a77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/moderation/repel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ export const repelCommand = createCommand({
431431

432432
const timeout = await handleTimeout({
433433
target: target,
434-
durationInMilliseconds: timeoutHours ? timeoutHours * HOUR : DEFAULT_TIMEOUT_DURATION_MS,
434+
durationInMilliseconds: timeoutHours !== null ? timeoutHours * HOUR : DEFAULT_TIMEOUT_DURATION_MS,
435435
});
436436

437437
const channels = getTextChannels(interaction);

0 commit comments

Comments
 (0)