aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushGuildManager.d.ts
blob: 4ec927610cd68e5992b54958f463c2335d5cd530 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { Snowflake } from 'discord-api-types';
import { CachedManager, Collection, FetchGuildOptions, FetchGuildsOptions, GuildCreateOptions, OAuth2Guild } from 'discord.js';
import { RawGuildData } from 'discord.js/typings/rawDataTypes';
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<RawGuildData>);
	public create(name: string, options?: GuildCreateOptions): Promise<BushGuild>;
	public fetch(options: Snowflake | FetchGuildOptions): Promise<BushGuild>;
	public fetch(options?: FetchGuildsOptions): Promise<Collection<Snowflake, OAuth2Guild>>;
}