minor tweaks to typings

This commit is contained in:
Erik 2023-08-15 18:29:24 +03:00
parent 66beb8dd1d
commit 6a74608815
Signed by: Navy.gif
GPG Key ID: 2532FBBB61C65A68
2 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ interface ICommand {
subcommandGroup(name: string): SubcommandGroupOption | null subcommandGroup(name: string): SubcommandGroupOption | null
execute(message: unknown, args?: ArgsResult): Promise<unknown> execute(message: unknown, opts?: {args?: ArgsResult, subcommand?: string, subcommandGroup?: string}): Promise<unknown>
} }

View File

@ -19,7 +19,7 @@ interface IResolver {
* @return {Member} {Member} * @return {Member} {Member}
* @memberof IResolver * @memberof IResolver
*/ */
resolveMember<Guild, Member>(resolveable: string, strict: boolean, guild: Guild): Promise<Member | null> resolveMember<Member, Guild>(resolveable: string, strict: boolean, guild: Guild): Promise<Member | null>
/** /**
* Should resolve to a role abstraction * Should resolve to a role abstraction
@ -30,7 +30,7 @@ interface IResolver {
* @return {Channel} {Channel} * @return {Channel} {Channel}
* @memberof IResolver * @memberof IResolver
*/ */
resolveChannel<Guild, Channel>(resolveable: string, strict: boolean, guild: Guild): Promise<Channel | null> resolveChannel<Channel, Guild>(resolveable: string, strict: boolean, guild: Guild): Promise<Channel | null>
/** /**
* Should resolve to a role abstraction * Should resolve to a role abstraction
@ -41,7 +41,7 @@ interface IResolver {
* @return {Role} {Role} * @return {Role} {Role}
* @memberof IResolver * @memberof IResolver
*/ */
resolveRole<Guild, Role>(resolveable: string, strict: boolean, guild: Guild): Promise<Role | null> resolveRole<Role, Guild>(resolveable: string, strict: boolean, guild: Guild): Promise<Role | null>
/** /**
* Should resolve to true when a truthy resolveable is passed, i.e. yes, true, on etc * Should resolve to true when a truthy resolveable is passed, i.e. yes, true, on etc