aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-04-20 13:49:13 -0400
committerRapptz <[email protected]>2019-04-20 13:49:13 -0400
commit30d87ca5573bf9a77566e264f7478f6e8a7e23ba (patch)
tree2289c49e6316692b199990714633d2aac9a73045
parentExplicit namespacing in the PermissionOverwrite example. (diff)
downloaddiscord.py-30d87ca5573bf9a77566e264f7478f6e8a7e23ba.tar.xz
discord.py-30d87ca5573bf9a77566e264f7478f6e8a7e23ba.zip
Add currently undocumented premium_tier field.
Needs more testing to find out what it is.
-rw-r--r--discord/guild.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/guild.py b/discord/guild.py
index 2126bb3c..53a20498 100644
--- a/discord/guild.py
+++ b/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)