We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bee85b8 commit 476959cCopy full SHA for 476959c
src/v2/commands/repel/index.ts
@@ -66,7 +66,8 @@ const handleTimeout = async ({
66
target: User | GuildMember;
67
duration: number;
68
}) => {
69
- if (!isUserInServer(target) || isUserTimedOut(target)) return 0;
+ if (duration === 0 || !isUserInServer(target) || isUserTimedOut(target))
70
+ return 0;
71
const timeoutDuration = duration * 60 * 60 * 1000;
72
await target.timeout(
73
timeoutDuration,
0 commit comments