mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Add SKU subscriptions support
This commit is contained in:
1 parent
0ce75f3f53
commit
58b6929aa5
10 files changed
+445
-12
No files matched your search
@@ -75,6 +75,7 @@ __all__ = (
|
||||
'EntitlementOwnerType',
|
||||
'PollLayoutType',
|
||||
'VoiceChannelEffectAnimationType',
|
||||
'SubscriptionStatus',
|
||||
)
|
||||
|
||||
|
||||
@@ -847,6 +848,12 @@ class VoiceChannelEffectAnimationType(Enum):
|
||||
basic = 1
|
||||
|
||||
|
||||
class SubscriptionStatus(Enum):
|
||||
active = 0
|
||||
ending = 1
|
||||
inactive = 2
|
||||
|
||||
|
||||
def create_unknown_value(cls: Type[E], val: Any) -> E:
|
||||
value_cls = cls._enum_value_cls_ # type: ignore # This is narrowed below
|
||||
name = f'unknown_{val}'
|
||||
|
||||
Reference in new issue
Block a user