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