Table of Contents

Method GetChannelAsync

Namespace
DSharpPlus.EventArgs
Assembly
DSharpPlus.dll

GetChannelAsync(bool)

Gets the channel associated with this voice state.

public ValueTask<DiscordChannel?> GetChannelAsync(bool skipCache = false)

Parameters

skipCache bool

Whether to skip the cache and always fetch the channel from the API.

Returns

ValueTask<DiscordChannel>

Returns the channel associated with this voice state. Null if the voice state is not associated with a guild.