Table of Contents
API reference

Method GetVoiceStateAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetVoiceStateAsync(CancellationToken)

Gets the member's voice state. If the member is connected, Discord requires access to connect to their channel.

public Task<DiscordVoiceState?> GetVoiceStateAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<DiscordVoiceState>