fix resolver interface

This commit is contained in:
Erik 2022-07-29 17:12:45 +03:00
parent 33ccdd0f0f
commit f93ba28867
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -8,7 +8,7 @@ interface IResolver <User, Member, Channel, Role, Guild> {
* @return {User} {User} * @return {User} {User}
* @memberof IResolver * @memberof IResolver
*/ */
resolveUser(resolveable: string, strict?: boolean): User | null resolveUser(resolveable: string, strict?: boolean): Promise<User | null>
/** /**
* Should resolve to a member abstraction * Should resolve to a member abstraction
@ -19,7 +19,7 @@ interface IResolver <User, Member, Channel, Role, Guild> {
* @return {Member} {Member} * @return {Member} {Member}
* @memberof IResolver * @memberof IResolver
*/ */
resolveMember(resolveable: string, strict?: boolean, guild?: Guild): Member | null resolveMember(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 <User, Member, Channel, Role, Guild> {
* @return {Channel} {Channel} * @return {Channel} {Channel}
* @memberof IResolver * @memberof IResolver
*/ */
resolveChannel(resolveable: string, strict?: boolean, guild?: Guild): Channel | null resolveChannel(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 <User, Member, Channel, Role, Guild> {
* @return {Role} {Role} * @return {Role} {Role}
* @memberof IResolver * @memberof IResolver
*/ */
resolveRole(resolveable: string, strict?: boolean, guild?: Guild): Role | null resolveRole(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