aboutsummaryrefslogtreecommitdiff
path: root/src/arguments/roleWithDuation.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-18 22:27:57 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-18 22:27:57 -0400
commitdca5041fab25eb7c81cabd6ddbd418b311c65fcc (patch)
treea3adf9b13d5ca13dcd44112ef18abd0e7315d4d1 /src/arguments/roleWithDuation.ts
parent04dc104726fa1519480ba1889c1307ec3ad9be19 (diff)
downloadtanzanite-dca5041fab25eb7c81cabd6ddbd418b311c65fcc.tar.gz
tanzanite-dca5041fab25eb7c81cabd6ddbd418b311c65fcc.tar.bz2
tanzanite-dca5041fab25eb7c81cabd6ddbd418b311c65fcc.zip
fix slowmode
Diffstat (limited to 'src/arguments/roleWithDuation.ts')
-rw-r--r--src/arguments/roleWithDuation.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arguments/roleWithDuation.ts b/src/arguments/roleWithDuation.ts
index 54e6390..a63026d 100644
--- a/src/arguments/roleWithDuation.ts
+++ b/src/arguments/roleWithDuation.ts
@@ -3,7 +3,7 @@ import { BushArgumentTypeCaster } from '@lib';
export const roleWithDurationTypeCaster: BushArgumentTypeCaster = async (
message,
phrase
-): Promise<{ duration: number; role: string | null } | null> => {
+): Promise<{ duration: number | null; role: string | null } | null> => {
// eslint-disable-next-line prefer-const
let { duration, contentWithoutTime } = client.util.parseDuration(phrase);
if (contentWithoutTime === null || contentWithoutTime === undefined) return null;