mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Add reaction type to raw events and users iterator
This commit is contained in:
1 parent
b5ada0a662
commit
f77ba711ba
7 files changed
+53
-4
No files matched your search
@@ -829,6 +829,11 @@ class InviteType(Enum):
|
||||
friend = 2
|
||||
|
||||
|
||||
class ReactionType(Enum):
|
||||
normal = 0
|
||||
burst = 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