Table of Contents

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 DiscordUser

The member to get the voice state for.

skipCache bool

Whether 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 ulong

The member ID to get the voice state for.

skipCache bool

Whether to skip the cache or not.

Returns

Task<DiscordVoiceState>

Returns the users voicestate. This is null if the user is in no voice channel