Preview deployment

class GuildManager

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

Manages API methods for Guilds and stores their cache.

readonly
cache : Collection<Key, Holds>

The cache of items for this manager.

Inherited from: DataManager

readonly
client : Client

The client that instantiated this Manager

Inherited from: BaseManager

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 | null

Resolves a GuildResolvable to a Guild object.

resolveId() : Snowflake | null

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.