minor tweaks to typings
This commit is contained in:
parent
66beb8dd1d
commit
6a74608815
@ -20,7 +20,7 @@ interface ICommand {
|
||||
|
||||
subcommandGroup(name: string): SubcommandGroupOption | null
|
||||
|
||||
execute(message: unknown, args?: ArgsResult): Promise<unknown>
|
||||
execute(message: unknown, opts?: {args?: ArgsResult, subcommand?: string, subcommandGroup?: string}): Promise<unknown>
|
||||
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,7 @@ interface IResolver {
|
||||
* @return {Member} {Member}
|
||||
* @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
|
||||
@ -30,7 +30,7 @@ interface IResolver {
|
||||
* @return {Channel} {Channel}
|
||||
* @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
|
||||
@ -41,7 +41,7 @@ interface IResolver {
|
||||
* @return {Role} {Role}
|
||||
* @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
|
||||
|
Loading…
Reference in New Issue
Block a user