Skip to content

GuildWidget

Represents a guild widget.

Kind: global class
Extends: Base

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.

Retrieves the guild associated with this object.

Kind: instance property of GuildWidget
Returns: Guild | null - The guild object if found, otherwise null.

Fetches the settings for the guild’s widgets.

Kind: instance method of GuildWidget
Returns: Promise - A promise that resolves to the fetched settings.