Manages API methods for Guilds and stores their cache.
Extends
CachedManager<Snowflake, Guild, GuildResolvable>The cache of items for this manager.
Inherited from DataManagerThe client that instantiated this Manager
Inherited from BaseManagerThe data structure belonging to this manager.
Inherited from DataManagerCreates a guild. This is only available to bots in fewer than 10 guilds.
Returns
The guild that was createdName | Type | Optional | Description |
---|---|---|---|
options | GuildCreateOptions | No | Options for creating the guild |
Obtains one or multiple guilds from Discord, or the guild cache if it's already available.
Name | Type | Optional | Description |
---|---|---|---|
options | Snowflake | FetchGuildOptions | No | The guild's id or options |
Resolves a data entry to a data Object.
Returns
An instance from this ManagerName | Type | Optional | Description |
---|---|---|---|
idOrInstance | Holds | No | The id or instance of something in this Manager |
Resolves a data entry to an instance id.
Returns
Name | Type | Optional | Description |
---|---|---|---|
idOrInstance | K | Holds | No | The id or instance of something in this Manager |
Returns a URL for the PNG widget of a guild.
Name | Type | Optional | Description |
---|---|---|---|
guild | GuildResolvable | No | The guild of the widget image |
style | GuildWidgetStyle | Yes | The style for the widget image |