aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushGuildManager.d.ts
blob: 5bfe70679c51f6bc9d8c9681e6a348c9de8dd369 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { Snowflake } from 'discord-api-types';
import {
	CachedManager,
	Collection,
	FetchGuildOptions,
	FetchGuildsOptions,
	Guild,
	GuildCreateOptions,
	OAuth2Guild
} from 'discord.js';
import { BushClient } from '../discord-akairo/BushClient';
import { BushGuildResolvable } from './BushCommandInteraction';
import { BushGuild } from './BushGuild';

export class BushGuildManager extends CachedManager<Snowflake, BushGuild, BushGuildResolvable> {
	public constructor(client: BushClient, iterable?: Iterable<unknown>);
	public create(name: string, options?: GuildCreateOptions): Promise<Guild>;
	public fetch(options: Snowflake | FetchGuildOptions): Promise<BushGuild>;
	public fetch(options?: FetchGuildsOptions): Promise<Collection<Snowflake, OAuth2Guild>>;
}