Class Lobby

A base class which most other classes extend.

Hierarchy (view full)

Constructors

Properties

applicationID: string
id: string
linkedChannel?: GuildChannel | Uncached
members: LobbyMember[]
metadata?: null | Record<string, string>

Accessors

Methods

  • Leave this lobby. This requires bearer token authentication.

    Parameters

    • Optional accessToken: string

      An optional access token to use instead of the client's token. This overrides the client's auth.

    Returns Promise<void>

  • Link this lobby to a channel. This requires bearer token authentication and the CAN_LINK_LOBBY flag on the member.

    Parameters

    • channelID: undefined | string

      The ID of the channel to link the lobby to.

    • Optional accessToken: string

      An optional access token to use instead of the client's token. This overrides the client's auth.

    Returns Promise<Lobby>

  • Unlink this lobby from a channel. This requires bearer token authentication and the CAN_LINK_LOBBY flag on the member.

    Parameters

    • Optional accessToken: string

      An optional access token to use instead of the client's token. This overrides the client's auth.

    Returns Promise<Lobby>

  • Update the moderation metadata for a message in this lobby.

    Parameters

    • messageID: string

      The ID of the message to update the metadata for.

    • metadata: Record<string, string>

      The metadata to set for the message.

    Returns Promise<void>