Table of Contents

Method GetConnectionsAsync

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

GetConnectionsAsync(CancellationToken)

Gets a list of user connections.

public Task<IReadOnlyList<DiscordConnection>> GetConnectionsAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<IReadOnlyList<DiscordConnection>>

Exceptions

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.