aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushGuildManager.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/extensions/discord.js/BushGuildManager.d.ts')
-rw-r--r--src/lib/extensions/discord.js/BushGuildManager.d.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/extensions/discord.js/BushGuildManager.d.ts b/src/lib/extensions/discord.js/BushGuildManager.d.ts
index 4dd0750..95719a3 100644
--- a/src/lib/extensions/discord.js/BushGuildManager.d.ts
+++ b/src/lib/extensions/discord.js/BushGuildManager.d.ts
@@ -10,9 +10,25 @@ import {
} from 'discord.js';
import { type RawGuildData } from 'discord.js/typings/rawDataTypes';
+/**
+ * Manages API methods for Guilds and stores their cache.
+ */
export class BushGuildManager extends CachedManager<Snowflake, BushGuild, BushGuildResolvable> {
public constructor(client: BushClient, iterable?: Iterable<RawGuildData>);
+
+ /**
+ * Creates a guild.
+ * <warn>This is only available to bots in fewer than 10 guilds.</warn>
+ * @param name The name of the guild
+ * @param options Options for creating the guild
+ * @returns The guild that was created
+ */
public create(name: string, options?: GuildCreateOptions): Promise<BushGuild>;
+
+ /**
+ * Obtains one or multiple guilds from Discord, or the guild cache if it's already available.
+ * @param options The guild's id or options
+ */
public fetch(options: Snowflake | FetchGuildOptions): Promise<BushGuild>;
public fetch(options?: FetchGuildsOptions): Promise<Collection<Snowflake, OAuth2Guild>>;
}