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
boolWhether 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.