Method ModifyWidgetSettingsAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.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