aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common/util/Arg.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/common/util/Arg.ts')
-rw-r--r--src/lib/common/util/Arg.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/common/util/Arg.ts b/src/lib/common/util/Arg.ts
index ee9aee0..1982f4a 100644
--- a/src/lib/common/util/Arg.ts
+++ b/src/lib/common/util/Arg.ts
@@ -9,7 +9,11 @@ export class Arg {
* @param message - Message that called the command.
* @param phrase - Phrase to process.
*/
- public static cast(type: BushArgumentType, message: BushMessage | BushSlashMessage, phrase: string): Promise<any> {
+ public static cast(
+ type: BushArgumentType | ArgumentTypeCaster,
+ message: BushMessage | BushSlashMessage,
+ phrase: string
+ ): Promise<any> {
return Argument.cast(type, client.commandHandler.resolver, message as Message, phrase);
}