From 6a74608815d8527acff50f68819447468750fbb3 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Tue, 15 Aug 2023 18:29:24 +0300 Subject: [PATCH] minor tweaks to typings --- src/interfaces/Command.ts | 2 +- src/interfaces/Resolver.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/interfaces/Command.ts b/src/interfaces/Command.ts index e2c96c8..0e921f6 100644 --- a/src/interfaces/Command.ts +++ b/src/interfaces/Command.ts @@ -20,7 +20,7 @@ interface ICommand { subcommandGroup(name: string): SubcommandGroupOption | null - execute(message: unknown, args?: ArgsResult): Promise + execute(message: unknown, opts?: {args?: ArgsResult, subcommand?: string, subcommandGroup?: string}): Promise } diff --git a/src/interfaces/Resolver.ts b/src/interfaces/Resolver.ts index f097f19..8a576c8 100644 --- a/src/interfaces/Resolver.ts +++ b/src/interfaces/Resolver.ts @@ -19,7 +19,7 @@ interface IResolver { * @return {Member} {Member} * @memberof IResolver */ - resolveMember(resolveable: string, strict: boolean, guild: Guild): Promise + resolveMember(resolveable: string, strict: boolean, guild: Guild): Promise /** * Should resolve to a role abstraction @@ -30,7 +30,7 @@ interface IResolver { * @return {Channel} {Channel} * @memberof IResolver */ - resolveChannel(resolveable: string, strict: boolean, guild: Guild): Promise + resolveChannel(resolveable: string, strict: boolean, guild: Guild): Promise /** * Should resolve to a role abstraction @@ -41,7 +41,7 @@ interface IResolver { * @return {Role} {Role} * @memberof IResolver */ - resolveRole(resolveable: string, strict: boolean, guild: Guild): Promise + resolveRole(resolveable: string, strict: boolean, guild: Guild): Promise /** * Should resolve to true when a truthy resolveable is passed, i.e. yes, true, on etc