class Widget

extends

Base
export class Widget extends Base

Represents a Widget.

The list of channels in the guild.

readonly
client : Client

The client that instantiated this

The id of the guild.

optional
instantInvite? : string

The invite of the guild.

The list of members in the guild. These strings are just arbitrary numbers, they aren't Snowflakes.

name : string

The name of the guild.

presenceCount : number

The number of members online.

fetch() : Promise<Widget>

Update the Widget.

imageURL() : string

Returns a URL for the PNG widget of the guild.

toJSON(
...props: Record<string, boolean | string>[]
) : unknown

Inherited from: Base

valueOf() : string

Inherited from: Base