@@ -239,6 +239,10 @@ class Guild(Hashable):
239
239
The number goes from 0 to 3 inclusive.
240
240
premium_subscription_count: :class:`int`
241
241
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
242
246
preferred_locale: Optional[:class:`str`]
243
247
The preferred locale for the guild. Used when filtering Server Discovery
244
248
results to a specific language.
@@ -269,6 +273,7 @@ class Guild(Hashable):
269
273
'max_video_channel_users' ,
270
274
'premium_tier' ,
271
275
'premium_subscription_count' ,
276
+ 'premium_progress_bar_enabled' ,
272
277
'preferred_locale' ,
273
278
'nsfw_level' ,
274
279
'_members' ,
@@ -449,6 +454,7 @@ def _from_data(self, guild: GuildPayload) -> None:
449
454
self .max_video_channel_users : Optional [int ] = guild .get ('max_video_channel_users' )
450
455
self .premium_tier : int = guild .get ('premium_tier' , 0 )
451
456
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
452
458
self ._system_channel_flags : int = guild .get ('system_channel_flags' , 0 )
453
459
self .preferred_locale : Optional [str ] = guild .get ('preferred_locale' )
454
460
self ._discovery_splash : Optional [str ] = guild .get ('discovery_splash' )
@@ -1370,6 +1376,7 @@ async def edit(
1370
1376
preferred_locale : str = MISSING ,
1371
1377
rules_channel : Optional [TextChannel ] = MISSING ,
1372
1378
public_updates_channel : Optional [TextChannel ] = MISSING ,
1379
+ premium_progress_bar_enabled : bool = MISSING ,
1373
1380
) -> Guild :
1374
1381
r"""|coro|
1375
1382
@@ -1447,6 +1454,8 @@ async def edit(
1447
1454
The new channel that is used for public updates from Discord. This is only available to
1448
1455
guilds that contain ``PUBLIC`` in :attr:`Guild.features`. Could be ``None`` for no
1449
1456
public updates channel.
1457
+ premium_progress_bar_enabled: :class:`bool`
1458
+ Whether the guild should have premium progress bar enabled.
1450
1459
reason: Optional[:class:`str`]
1451
1460
The reason for editing this guild. Shows up on the audit log.
1452
1461
@@ -1577,6 +1586,9 @@ async def edit(
1577
1586
)
1578
1587
1579
1588
fields ['features' ] = features
1589
+
1590
+ if premium_progress_bar_enabled is not MISSING :
1591
+ fields ['premium_progress_bar_enabled' ] = premium_progress_bar_enabled
1580
1592
1581
1593
data = await http .edit_guild (self .id , reason = reason , ** fields )
1582
1594
return Guild (data = data , state = self ._state )
0 commit comments