feat(GuildParams): make PremiumProgressBarEnabled pointer

Make PremiumProgressBarEnabled field of GuildParams a pointer to allow
for the false value.
This commit is contained in:
Fedor Lapshin 2022-12-17 23:14:46 +03:00
parent 2a22f54711
commit 8a5201aae6
No known key found for this signature in database
GPG key ID: 492D745FB49D2DAB

View file

@ -1149,7 +1149,7 @@ type GuildParams struct {
PreferredLocale Locale `json:"preferred_locale,omitempty"`
Features []GuildFeature `json:"features,omitempty"`
Description string `json:"description,omitempty"`
PremiumProgressBarEnabled bool `json:"premium_progress_bar_enabled,omitempty"`
PremiumProgressBarEnabled *bool `json:"premium_progress_bar_enabled,omitempty"`
}
// A Role stores information about Discord guild member roles.