.delete(key)
key: string → boolean
Remove a guild from cache and cascade its channels / message caches. Does not leave the guild. Use user.leaveGuild for that.
client.guilds.delete(key);Class
Guild cache and manager with fetch. Extends LimitedCollection so you can use .get(), .set(), .filter(), etc. FIFO-evicts (and cascades nested caches) when at the resolved cache.guilds limit.
Extends LimitedCollection
new GuildManager(client: Client)Clientkey: string → boolean
Remove a guild from cache and cascade its channels / message caches. Does not leave the guild. Use user.leaveGuild for that.
client.guilds.delete(key);guildId: string, options?: { force?: boolean; } → Promise<Guild>
Fetch a guild by ID. Returns the cached guild unless force is set, in which case REST metadata is applied via _patch.
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);