Method GetMemberVoiceStateAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
GetMemberVoiceStateAsync(DiscordUser, bool)
Gets user's voice state in this guild.
public Task<DiscordVoiceState?> GetMemberVoiceStateAsync(DiscordUser member, bool skipCache = false)
Parameters
member
DiscordUserThe member to get the voice state for.
skipCache
boolWhether to skip the cache or not.
Returns
- Task<DiscordVoiceState>
Returns the users voicestate. This is null if the user is in no voice channel
GetMemberVoiceStateAsync(ulong, bool)
Gets user's voice state in this guild.
public Task<DiscordVoiceState?> GetMemberVoiceStateAsync(ulong memberId, bool skipCache = false)
Parameters
memberId
ulongThe member ID to get the voice state for.
skipCache
boolWhether to skip the cache or not.
Returns
- Task<DiscordVoiceState>
Returns the users voicestate. This is null if the user is in no voice channel