aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushThreadMemberManager.d.ts
blob: cbc28dedd71d80c78dbb0627cef67567710c2ee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { CachedManager, Collection, Snowflake, ThreadChannel, ThreadMember, UserResolvable } from 'discord.js';
import { RawThreadMemberData } from 'discord.js/typings/rawDataTypes';
import { BushClient, BushThreadMemberResolvable } from '../discord-akairo/BushClient';
import { BushThreadChannel } from './BushThreadChannel';
import { BushThreadMember } from './BushThreadMember';

export class BushThreadMemberManager extends CachedManager<Snowflake, BushThreadMember, BushThreadMemberResolvable> {
	public constructor(thread: BushThreadChannel, iterable?: Iterable<RawThreadMemberData>);
	public declare readonly client: BushClient;
	public thread: ThreadChannel;
	public add(member: UserResolvable | '@me', reason?: string): Promise<Snowflake>;
	public fetch(cache?: boolean): Promise<Collection<Snowflake, ThreadMember>>;
	public remove(id: Snowflake | '@me', reason?: string): Promise<Snowflake>;
}