Skip to content

Instantly share code, notes, and snippets.

@msciotti
Created May 29, 2019 00:40
Show Gist options
  • Save msciotti/b2dbe76aeade534f1b44878f084ab032 to your computer and use it in GitHub Desktop.
Save msciotti/b2dbe76aeade534f1b44878f084ab032 to your computer and use it in GitHub Desktop.
var lobbyManager = discord.GetLobbyManager();
lobbyManager.ConnectLobby(lobbyId, lobbySecret, (Discord.Result result, ref Discord.Lobby lobby) =>
{
if (result == Discord.Result.Ok)
{
// User is in the lobby
lobbyManager.ConnectVoice(lobby.Id, (res) =>
{
if (res == Discord.Result.Ok)
{
// User is connected to voice
}
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment