Table of Contents

Method ListVoiceRegionsAsync

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

ListVoiceRegionsAsync(CancellationToken)

Gets a list of voice regions.

public Task<IReadOnlyList<DiscordVoiceRegion>> ListVoiceRegionsAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<IReadOnlyList<DiscordVoiceRegion>>

Exceptions

ServerErrorException

Thrown when Discord is unable to process the request.