aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation/slowmode.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/moderation/slowmode.ts')
-rw-r--r--src/commands/moderation/slowmode.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/moderation/slowmode.ts b/src/commands/moderation/slowmode.ts
index d90f122..75d795c 100644
--- a/src/commands/moderation/slowmode.ts
+++ b/src/commands/moderation/slowmode.ts
@@ -65,7 +65,7 @@ export default class SlowModeCommand extends BushCommand {
if (length) {
length =
typeof length === 'string' && !['off', 'none', 'disable'].includes(length)
- ? await util.arg.cast('duration', client.commandHandler.resolver, message as BushMessage, length)
+ ? await util.arg.cast('duration', message, length)
: length;
}