Table of Contents

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 DiscordChannel

Widget channel

reason string

Reason the widget settings were modified

Returns

Task<DiscordWidgetSettings>

The newly modified widget settings