feat(GuildMemberManager): add 'search' method (#4154)

Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
This commit is contained in:
izexi
2021-04-14 13:53:01 +01:00
committed by GitHub
parent eec7cf7634
commit 0ba2bcb545
2 changed files with 20 additions and 0 deletions

7
typings/index.d.ts vendored
View File

@@ -2009,6 +2009,7 @@ declare module 'discord.js' {
public fetch(options?: FetchMembersOptions): Promise<Collection<Snowflake, GuildMember>>;
public prune(options: GuildPruneMembersOptions & { dry?: false; count: false }): Promise<null>;
public prune(options?: GuildPruneMembersOptions): Promise<number>;
public search(options: GuildSearchMembersOptions): Promise<Collection<Snowflake, GuildMember>>;
public unban(user: UserResolvable, reason?: string): Promise<User>;
}
@@ -2860,6 +2861,12 @@ declare module 'discord.js' {
channel: GuildChannelResolvable | null;
}
interface GuildSearchMembersOptions {
query: string;
limit?: number;
cache?: boolean;
}
interface HTTPOptions {
api?: string;
version?: number;