Add on_interaction event and Interaction class.

This is the first pass at the functionality. It's currently a bit
incomplete.
This commit is contained in:
Rapptz
2021-03-28 11:07:51 -04:00
parent 1e7f139313
commit 8cece19b22
5 changed files with 147 additions and 0 deletions

View File

@@ -418,6 +418,10 @@ class StickerType(Enum):
apng = 2
lottie = 3
class InteractionType(Enum):
ping = 1
application_command = 2
def try_enum(cls, val):
"""A function that tries to turn the value into enum ``cls``.