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
memberIdulongThe ID of the member.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<DiscordVoiceState>
The voice state of the member.