Method GetSafetyAlertsChannelAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
GetSafetyAlertsChannelAsync(bool)
Gets the guild's safety alerts channel.
public Task<DiscordChannel?> GetSafetyAlertsChannelAsync(bool skipCache = false)
Parameters
skipCache
boolIf 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 configured safety alerts channel.