Table of Contents

Method GetCurrentUserVoiceStateAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

GetCurrentUserVoiceStateAsync(bool)

Gets the current user's voice state in this guild.

public Task<DiscordVoiceState?> GetCurrentUserVoiceStateAsync(bool skipCache = false)

Parameters

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