Method ModifyWidgetSettingsAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
ModifyWidgetSettingsAsync(bool?, DiscordChannel?, string?)
Modifies the guild's widget settings
public Task<DiscordWidgetSettings> ModifyWidgetSettingsAsync(bool? isEnabled = null, DiscordChannel? channel = null, string? reason = null)
Parameters
isEnabled
bool?If the widget is enabled or not
channel
DiscordChannelWidget channel
reason
stringReason the widget settings were modified
Returns
- Task<DiscordWidgetSettings>
The newly modified widget settings