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 GuildResolvable to a Guild object.
Name | Type | Optional | Description |
---|---|---|---|
guild | GuildResolvable | No | The guild resolvable to identify |
Resolves a GuildResolvable to a Guild id string.
Name | Type | Optional | Description |
---|---|---|---|
guild | GuildResolvable | No | The guild resolvable to identify |
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 |