Created
May 29, 2019 00:40
-
-
Save msciotti/b2dbe76aeade534f1b44878f084ab032 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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