Method GetConnectionsAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetConnectionsAsync(CancellationToken)
Gets a list of user connections.
public Task<IReadOnlyList<DiscordConnection>> GetConnectionsAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to cancel the request.
Returns
Exceptions
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.