Table of Contents

Method GetRulesChannelAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

GetRulesChannelAsync(bool)

Gets the rules channel for this guild.

This is only available if the guild is considered "discoverable".

public Task<DiscordChannel?> GetRulesChannelAsync(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 rules channel configured