mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
feat(GuildMemberManager): add 'search' method (#4154)
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
This commit is contained in:
7
typings/index.d.ts
vendored
7
typings/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user