Table of Contents

Method GetAfkChannelAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

GetAfkChannelAsync(bool)

Gets the guild's AFK voice channel.

public Task<DiscordChannel?> GetAfkChannelAsync(bool skipCache = false)

Parameters

skipCache bool

If set to true this method will skip all caches and always perform a rest api call

Returns

Task<DiscordChannel>

Returns null if the guild has no AFK channel