Discord: fix wrong field naming

This commit is contained in:
Maximilian von Lindern 2020-05-22 16:22:33 +02:00 committed by diamondburned
parent 68d3129bfd
commit 68701704a1
1 changed files with 2 additions and 2 deletions

View File

@ -65,8 +65,8 @@ type Guild struct {
// This field is nullable.
AppID Snowflake `json:"application_id,string,omitempty"`
// WidgetEnabled is true if the server widget is enabled.
WidgetEnabled bool `json:"widget_enabled,omitempty"`
// Widget is true if the server widget is enabled.
Widget bool `json:"widget_enabled,omitempty"`
// WidgetChannelID is the channel id that the widget will generate an
// invite to, or null if set to no invite.
WidgetChannelID Snowflake `json:"widget_channel_id,string,omitempty"`