From 78c4f19eca2104f849c538f3c341418ef5c47456 Mon Sep 17 00:00:00 2001 From: GRZ4NA Date: Wed, 23 Jun 2021 16:43:20 +0200 Subject: [PATCH] command type safety --- src/Command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command.ts b/src/Command.ts index 5be5488..b7894a7 100644 --- a/src/Command.ts +++ b/src/Command.ts @@ -53,7 +53,7 @@ class Command { this.visible = options.visible != undefined ? options.visible : true; this.function = options.function; } - async start(message?: Message, cmdArguments?: string[]) { + async start(message?: Message, cmdArguments?: string[]) : Promise { const memberPermissions : Readonly = message?.member?.permissions || new Permissions(0); if(memberPermissions.has(this.permissions, true)) { const fnResult = await this.function(message, cmdArguments);