Skip to content

GuildWidget

GuildWidget ⇐ Base

Represents a guild widget.

Kind: global class
Extends: Base

new GuildWidget([data], guildId, client)

Constructs a new instance of the Guild class.

ParamTypeDescription
[data]ObjectThe data object containing guild widget information.
guildIdstringThe ID of the guild.
clientClientThe 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.