lint: Support pagination for fetching thread members

This commit is contained in:
Elysia 2023-02-05 15:22:49 +07:00
parent 0f97dc03bd
commit 1068467be7

4
typings/index.d.ts vendored
View File

@ -4214,7 +4214,7 @@ export class ThreadMemberManager extends CachedManager<Snowflake, ThreadMember,
public thread: ThreadChannel; public thread: ThreadChannel;
public readonly me: ThreadMember | null; public readonly me: ThreadMember | null;
public add(member: UserResolvable | '@me', reason?: string): Promise<Snowflake>; public add(member: UserResolvable | '@me', reason?: string): Promise<Snowflake>;
public fetch(): Promise<Collection<Snowflake, ThreadMember>>; public fetch(options?: FetchThreadMembersWithoutGuildMemberDataOptions): Promise<Collection<Snowflake, ThreadMember>>;
public fetch(member: ThreadMember<true>, options?: FetchMemberOptions): Promise<ThreadMember<true>>; public fetch(member: ThreadMember<true>, options?: FetchMemberOptions): Promise<ThreadMember<true>>;
public fetch( public fetch(
member: Snowflake, member: Snowflake,
@ -4224,8 +4224,6 @@ export class ThreadMemberManager extends CachedManager<Snowflake, ThreadMember,
options: FetchThreadMembersWithGuildMemberDataOptions, options: FetchThreadMembersWithGuildMemberDataOptions,
): Promise<Collection<Snowflake, ThreadMember<true>>>; ): Promise<Collection<Snowflake, ThreadMember<true>>>;
public fetch(member: UserResolvable, options?: FetchThreadMemberOptions): Promise<ThreadMember>; public fetch(member: UserResolvable, options?: FetchThreadMemberOptions): Promise<ThreadMember>;
public fetch(options: FetchThreadMembersWithoutGuildMemberDataOptions): Promise<Collection<Snowflake, ThreadMember>>;
/** @deprecated Use `fetch(member, options)` instead. */ /** @deprecated Use `fetch(member, options)` instead. */
public fetch(cache: boolean, options?: FetchMembersOptions): Promise<Collection<Snowflake, ThreadMember>>; public fetch(cache: boolean, options?: FetchMembersOptions): Promise<Collection<Snowflake, ThreadMember>>;
public fetchMe(options?: BaseFetchOptions): Promise<ThreadMember>; public fetchMe(options?: BaseFetchOptions): Promise<ThreadMember>;