1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-01-05 19:57:02 +00:00

API: Better documented ModifyGuildWidgetData

This commit is contained in:
diamondburned 2020-10-28 14:43:49 -07:00
parent 994ddca1e1
commit 196cab2105

View file

@ -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"`
}