API reference
Method LeaveLobbyAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
LeaveLobbyAsync(ulong, CancellationToken)
Removes the current OAuth user from a lobby.
public Task LeaveLobbyAsync(ulong lobbyId, CancellationToken cancellationToken = default)
Parameters
lobbyIdulongThe lobby ID.
cancellationTokenCancellationTokenA cancellation token.
Returns
- Task
A task representing the request.