From 8a5201aae635bc0704fb7da29eff7f7ef0b7471d Mon Sep 17 00:00:00 2001 From: Fedor Lapshin Date: Sat, 17 Dec 2022 23:14:46 +0300 Subject: [PATCH] feat(GuildParams): make PremiumProgressBarEnabled pointer Make PremiumProgressBarEnabled field of GuildParams a pointer to allow for the false value. --- structs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structs.go b/structs.go index e10ddf3..0d78f1b 100644 --- a/structs.go +++ b/structs.go @@ -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.