Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
method ClientUser.prototype.connectToLobby
import { ClientUser } from "https://deno.land/x/discord_rpc_deno@1.0.11/src/structures/ClientUser.ts";

Used to join a new lobby.

Parameters

lobbyId: string
  • the id of the lobby to join
secret: string
  • the secret of the lobby to join

Returns

Promise<Lobby>

the lobby that the user joined