Method ModifyCommunitySettingsAsync
- Namespace
- Dis
Cat .EntitiesSharp
- Assembly
- DisCatSharp.dll
ModifyCommunitySettingsAsync(bool, DiscordChannel, DiscordChannel, string, string, DefaultMessageNotifications, string?)
Modifies the community settings async.
This sets High if not highest and All
public Task<DiscordGuild> ModifyCommunitySettingsAsync(bool enabled, DiscordChannel rulesChannel, DiscordChannel publicUpdatesChannel, string preferredLocale = "en-US", string description = null, DefaultMessageNotifications defaultMessageNotifications = DefaultMessageNotifications.MentionsOnly, string? reason = null)
Parameters
enabled
boolIf true, enables Has
Community .Enabled rulesChannel
DiscordChannel The rules channel.
publicUpdatesChannel
DiscordChannel The public updates channel.
preferredLocale
stringThe preferred locale. Defaults to en-US.
description
stringThe description.
defaultMessageNotifications
DefaultMessage Notifications The default message notifications. Defaults to Mentions
Only reason
stringThe audit log reason.
Returns
Exceptions
- Unauthorized
Exception Thrown when the client does not have the Administrator permission.
- Not
Found Exception Thrown when the guild does not exist.
- Bad
Request Exception Thrown when an invalid parameter was provided.
- Server
Error Exception Thrown when Discord is unable to process the request.