From 9503a1af83d45e26e6d003a96e67362dfbcf96bd Mon Sep 17 00:00:00 2001 From: dolfies Date: Wed, 17 Nov 2021 17:57:34 -0500 Subject: [PATCH] Allow enabling guild_progress_bar --- discord/guild.py | 6 ++++++ discord/http.py | 1 + 2 files changed, 7 insertions(+) diff --git a/discord/guild.py b/discord/guild.py index 5b06f0ecf..e82db808a 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -1359,6 +1359,7 @@ class Guild(Hashable): preferred_locale: str = MISSING, rules_channel: Optional[TextChannel] = MISSING, public_updates_channel: Optional[TextChannel] = MISSING, + premium_progress_bar_enabled: bool = MISSING, ) -> Guild: r"""|coro| @@ -1436,6 +1437,8 @@ class Guild(Hashable): The new channel that is used for public updates from Discord. This is only available to guilds that contain ``PUBLIC`` in :attr:`Guild.features`. Could be ``None`` for no public updates channel. + premium_progress_bar_enabled: :class:`bool` + Whether the premium progress bar should be enabled. reason: Optional[:class:`str`] The reason for editing this guild. Shows up on the audit log. @@ -1555,6 +1558,9 @@ class Guild(Hashable): fields['system_channel_flags'] = system_channel_flags.value + if premium_progress_bar_enabled is not MISSING: + fields['premium_progress_bar_enabled'] = premium_progress_bar_enabled + if community is not MISSING: features = [] if community: diff --git a/discord/http.py b/discord/http.py index 9811322f5..433697c43 100644 --- a/discord/http.py +++ b/discord/http.py @@ -1186,6 +1186,7 @@ class HTTPClient: 'rules_channel_id', 'public_updates_channel_id', 'preferred_locale', + 'premium_progress_bar_enabled', ) payload = {k: v for k, v in fields.items() if k in valid_keys}