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
ulongGuild ID
enabled
bool?If the widget is enabled or not
channelId
ulong?Widget channel ID
reason
stringReason the widget settings were modified
Returns
- Task<DiscordWidgetSettings>