feat(GuildMemberManager): add 'list' method (#6403)

Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
Co-authored-by: Ben <BenjammingKirby@users.noreply.github.com>
This commit is contained in:
Ben
2021-08-12 18:05:06 -04:00
committed by GitHub
parent dcc556c311
commit 2bf09703c1
2 changed files with 25 additions and 0 deletions

7
typings/index.d.ts vendored
View File

@@ -2477,6 +2477,7 @@ export class GuildMemberManager extends CachedManager<Snowflake, GuildMember, Gu
): Promise<GuildMember>;
public fetch(options?: FetchMembersOptions): Promise<Collection<Snowflake, GuildMember>>;
public kick(user: UserResolvable, reason?: string): Promise<GuildMember | User | Snowflake>;
public list(options?: GuildListMembersOptions): 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>>;
@@ -3867,6 +3868,12 @@ export interface GuildSearchMembersOptions {
cache?: boolean;
}
export interface GuildListMembersOptions {
after?: Snowflake;
limit?: number;
cache?: boolean;
}
export type GuildTemplateResolvable = string;
export type GuildVoiceChannelResolvable = VoiceChannel | StageChannel | Snowflake;