GuildWidget
GuildWidget ⇐ Base
Represents a guild widget.
Kind: global class
Extends: Base
- GuildWidget ⇐
Base
- new GuildWidget([data], guildId, client)
- .guild ⇒
Guild
|null
- .fetchSettings() ⇒
Promise
new GuildWidget([data], guildId, client)
Constructs a new instance of the Guild class.
Param | Type | Description |
---|---|---|
[data] | Object | The data object containing guild widget information. |
guildId | string | The ID of the guild. |
client | Client | The client instance. |
guildWidget.guild ⇒ Guild
| null
Retrieves the guild associated with this object.
Kind: instance property of GuildWidget
Returns: Guild
| null
- The guild object if found, otherwise null.
guildWidget.fetchSettings() ⇒ Promise
Fetches the settings for the guild’s widgets.
Kind: instance method of GuildWidget
Returns: Promise
- A promise that resolves to the fetched settings.