mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 10:22:59 +00:00
Add support for Polls
Co-authored-by: owocado <24418520+owocado@users.noreply.github.com> Co-authored-by: Josh <8677174+bijij@users.noreply.github.com> Co-authored-by: Trevor Flahardy <75498301+trevorflahardy@users.noreply.github.com>
This commit is contained in:
@ -73,6 +73,7 @@ __all__ = (
|
||||
'SKUType',
|
||||
'EntitlementType',
|
||||
'EntitlementOwnerType',
|
||||
'PollLayoutType',
|
||||
)
|
||||
|
||||
|
||||
@ -818,6 +819,10 @@ class EntitlementOwnerType(Enum):
|
||||
user = 2
|
||||
|
||||
|
||||
class PollLayoutType(Enum):
|
||||
default = 1
|
||||
|
||||
|
||||
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