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:
@@ -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``.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user