class GuildManager
extends
CachedManager<Snowflake, Guild, GuildResolvable>export class GuildManager extends CachedManager<Snowflake, Guild, GuildResolvable>
Manages API methods for Guilds and stores their cache.
readonlyCollection<Key, Holds> cache :
The cache of items for this manager.
Inherited from: DataManager
readonlyConstructable<Holds> holds :
The data structure belonging to this manager.
Inherited from: DataManager
createoptions: GuildCreateOptions) : Promise<Guild> (
options: GuildCreateOptions
Creates a guild. This is only available to bots in fewer than 10 guilds.
Returns: The guild that was created
Overload 1
Overload 2
fetchoptions: Snowflake | FetchGuildOptions) : Promise<Guild> (
options: Snowflake | FetchGuildOptions
Obtains one or multiple guilds from Discord, or the guild cache if it's already available.
resolveguild: GuildResolvable) : Guild (
guild: GuildResolvable
Resolves a GuildResolvable to a Guild object.
resolveIdguild: GuildResolvable) : Snowflake (
guild: GuildResolvable
Resolves a GuildResolvable to a Guild id string.
valueOfCollection<Key, Holds> () :
Inherited from: DataManager
widgetImageURLguild: GuildResolvablestyle?: GuildWidgetStyle) : string (
guild: GuildResolvable
style?: GuildWidgetStyle
Returns a URL for the PNG widget of a guild.