From 196cab2105ce055177cd9965f69d9ab489bb4d12 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Wed, 28 Oct 2020 14:43:49 -0700 Subject: [PATCH] API: Better documented ModifyGuildWidgetData --- api/guild.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/api/guild.go b/api/guild.go index 84595dc..c30bf22 100644 --- a/api/guild.go +++ b/api/guild.go @@ -443,11 +443,14 @@ func (c *Client) GuildWidget(guildID discord.GuildID) (*discord.GuildWidget, err return ge, c.RequestJSON(&ge, "GET", EndpointGuilds+guildID.String()+"/widget") } -// https://discord.com/developers/docs/resources/guild#guild-embed-object-guild-embed-structure +// ModifyGuildWidgetData is the structure to modify a guild widget object for +// the guild. All attributes may be passed in with JSON and modified. +// +// https://discord.com/developers/docs/resources/guild#guild-widget-object type ModifyGuildWidgetData struct { // Enabled specifies whether the widget is enabled. Enabled option.Bool `json:"enabled,omitempty"` - // ChannelID is the widget channel id. + // ChannelID is the widget channel ID. ChannelID discord.ChannelID `json:"channel_id,omitempty"` }