Skip to content

Widget

classe · Source

Represents a Widget.

Extends: Base

Properties

id

id: Snowflake

The id of the guild. Source

name

name: string

The name of the guild. Source

instantInvite

nullable

instantInvite: string

The invite of the guild. Source

channels

channels: Collection<Snowflake, WidgetChannel>

The list of channels in the guild. Source

members

members: Collection<string, WidgetMember>

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

presenceCount

presenceCount: number

The number of members online. Source

client

readonly

client: Client

The client that instantiated this Source

Methods

fetch

async

async fetch(): Promise<Widget>

Update the Widget. Returns: Promise<Widget>Source

Unofficial software. Not affiliated with or supported by Discord.