Table of Contents
API reference

Method GetMemberVoiceStateAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetMemberVoiceStateAsync(ulong, CancellationToken)

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

public Task<DiscordVoiceState?> GetMemberVoiceStateAsync(ulong memberId, CancellationToken cancellationToken = default)

Parameters

memberId ulong

The ID of the member.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<DiscordVoiceState>

The voice state of the member.