Skip to content

Commit fc58675

Browse files
committed
Add guild.premium_progress_bar_enabled
1 parent 2bbf063 commit fc58675

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

discord/guild.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,10 @@ class Guild(Hashable):
239239
The number goes from 0 to 3 inclusive.
240240
premium_subscription_count: :class:`int`
241241
The number of "boosts" this guild currently has.
242+
premium_progress_bar_enabled: :class:`bool`
243+
Indicates if the guild has premium progress bar enabled.
244+
245+
.. versionadded:: 2.0
242246
preferred_locale: Optional[:class:`str`]
243247
The preferred locale for the guild. Used when filtering Server Discovery
244248
results to a specific language.
@@ -269,6 +273,7 @@ class Guild(Hashable):
269273
'max_video_channel_users',
270274
'premium_tier',
271275
'premium_subscription_count',
276+
'premium_progress_bar_enabled',
272277
'preferred_locale',
273278
'nsfw_level',
274279
'_members',
@@ -449,6 +454,7 @@ def _from_data(self, guild: GuildPayload) -> None:
449454
self.max_video_channel_users: Optional[int] = guild.get('max_video_channel_users')
450455
self.premium_tier: int = guild.get('premium_tier', 0)
451456
self.premium_subscription_count: int = guild.get('premium_subscription_count') or 0
457+
self.premium_progress_bar_enabled: bool = guild.get('premium_progress_bar_enabled') or False
452458
self._system_channel_flags: int = guild.get('system_channel_flags', 0)
453459
self.preferred_locale: Optional[str] = guild.get('preferred_locale')
454460
self._discovery_splash: Optional[str] = guild.get('discovery_splash')

discord/types/guild.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class _GuildOptional(TypedDict, total=False):
6666
max_presences: Optional[int]
6767
max_members: int
6868
premium_subscription_count: int
69+
premium_progress_bar_enabled: bool
6970
max_video_channel_users: int
7071

7172

0 commit comments

Comments
 (0)