aboutsummaryrefslogtreecommitdiff
path: root/discord/enums.py
diff options
context:
space:
mode:
authorLiam H <[email protected]>2019-01-23 17:45:35 -0600
committerRapptz <[email protected]>2019-02-12 19:01:10 -0500
commit79f172cf809ee7b51ee9bce379a4c7531e8d1b4e (patch)
tree5fdb84e98785b1b6228c2f1f5ab1d3a7b515a4e6 /discord/enums.py
parentChange Activity.application_id from `str` to `int`. (diff)
downloaddiscord.py-79f172cf809ee7b51ee9bce379a4c7531e8d1b4e.tar.xz
discord.py-79f172cf809ee7b51ee9bce379a4c7531e8d1b4e.zip
Add PremiumType enumeration and ClientUser.premium_type
Diffstat (limited to 'discord/enums.py')
-rw-r--r--discord/enums.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/discord/enums.py b/discord/enums.py
index f11f1ed1..9e6ec3e6 100644
--- a/discord/enums.py
+++ b/discord/enums.py
@@ -29,7 +29,8 @@ from enum import Enum, IntEnum
__all__ = ['ChannelType', 'MessageType', 'VoiceRegion', 'SpeakingState',
'VerificationLevel', 'ContentFilter', 'Status', 'DefaultAvatar',
'RelationshipType', 'AuditLogAction', 'AuditLogActionCategory',
- 'UserFlags', 'ActivityType', 'HypeSquadHouse', 'NotificationLevel']
+ 'UserFlags', 'ActivityType', 'HypeSquadHouse', 'NotificationLevel',
+ 'PremiumType']
class ChannelType(Enum):
text = 0
@@ -245,6 +246,10 @@ class HypeSquadHouse(Enum):
brilliance = 2
balance = 3
+class PremiumType(Enum):
+ nitro_classic = 1
+ nitro = 2
+
def try_enum(cls, val):
"""A function that tries to turn the value into enum ``cls``.