.fetch(guildId)
guildId: string → Promise<Guild>
Fetch a guild by ID (returns cache if present).
await client.guilds.fetch(guildId);Class
Guild cache and manager with fetch. Extends Collection so you can use .get(), .set(), .filter(), etc.
Extends Collection
new GuildManager(client: Client)ClientguildId: string → Promise<Guild>
Fetch a guild by ID (returns cache if present).
await client.guilds.fetch(guildId);guildId: string → Promise<Guild>
Get a guild from cache or fetch from the API if not present.
stringSnowflake of the guildawait client.guilds.resolve(guildId);key: string, value: Guild → this
Set a guild in the cache (evicts oldest if at capacity).
client.guilds.set(key, value);