Table of Contents

Method ModifyGuildWidgetSettingsAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.dll

ModifyGuildWidgetSettingsAsync(ulong, bool?, ulong?, string)

Modifies a guild's widget settings

public Task<DiscordWidgetSettings> ModifyGuildWidgetSettingsAsync(ulong guildId, bool? enabled = null, ulong? channelId = null, string reason = null)

Parameters

guildId ulong

Guild ID

enabled bool?

If the widget is enabled or not

channelId ulong?

Widget channel ID

reason string

Reason the widget settings were modified

Returns

Task<DiscordWidgetSettings>