class GuildManager

export class GuildManager extends CachedManager<Snowflake, Guild, GuildResolvable>

Manages API methods for Guilds and stores their cache.

The cache of this Manager

readonly
client : Client

The client that instantiated this Manager

readonly
holds : Constructable<Holds>

The data structure belonging to this manager.

Inherited from: DataManager

create() : Promise<Guild>

Creates a guild. This is only available to bots in fewer than 10 guilds.

Returns: The guild that was created

Obtains one or multiple guilds from Discord, or the guild cache if it's already available.

resolve() : Guild

Resolves a GuildResolvable to a Guild object.

resolveId() : Snowflake

Resolves a GuildResolvable to a Guild id string.

valueOf() : Collection<Key, Holds>

Inherited from: DataManager

widgetImageURL() : string

Returns a URL for the PNG widget of a guild.