Table of Contents

Method GetMemberVoiceStateAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetMemberVoiceStateAsync(ulong, CancellationToken)

Gets the current voice state for a member.

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.