diff options
Diffstat (limited to 'src/arguments/roleWithDuation.ts')
-rw-r--r-- | src/arguments/roleWithDuation.ts | 2 |
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; |