Support team members data in application info

This commit is contained in:
fourjr
2019-06-21 17:09:15 +08:00
committed by Rapptz
parent 5698cf6df9
commit 3961e7ef6d
6 changed files with 208 additions and 5 deletions

View File

@ -47,6 +47,7 @@ __all__ = (
'PremiumType',
'UserContentFilter',
'FriendFlags',
'TeamMembershipState',
'Theme',
)
@ -392,6 +393,10 @@ class PremiumType(Enum):
nitro_classic = 1
nitro = 2
class TeamMembershipState(Enum):
invited = 1
accepted = 2
def try_enum(cls, val):
"""A function that tries to turn the value into enum ``cls``.