Browse Source

Add currently undocumented premium_tier field.

Needs more testing to find out what it is.
pull/2107/head
Rapptz 6 years ago
parent
commit
30d87ca557
  1. 3
      discord/guild.py

3
discord/guild.py

@ -132,7 +132,7 @@ class Guild(Hashable):
'owner_id', 'mfa_level', 'emojis', 'features',
'verification_level', 'explicit_content_filter', 'splash',
'_voice_states', '_system_channel_id', 'default_notifications',
'description', 'max_presences', 'max_members')
'description', 'max_presences', 'max_members', 'premium_tier')
def __init__(self, *, data, state):
self._channels = {}
@ -237,6 +237,7 @@ class Guild(Hashable):
self.description = guild.get('description')
self.max_presences = guild.get('max_presences')
self.max_members = guild.get('max_members')
self.premium_tier = guild.get('premium_tier')
for mdata in guild.get('members', []):
member = Member(data=mdata, guild=self, state=state)

Loading…
Cancel
Save