Widget

export class Widget extends Base
export class Widget extends Base
Represents a Widget.

Extends

Base
The list of channels in the guild.
Readonly
client:Client<true>
The client that instantiated this
Inherited from Base
The id of the guild.
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(style?):string
Returns a URL for the PNG widget of the guild.
NameTypeOptionalDescription
styleGuildWidgetStyleYesThe style for the widget image
toJSON(...props):unknown
NameTypeOptionalDescription
...propsRecord<string, boolean | string>[]NoNone
Inherited from Base
valueOf():string