feat(bot): initial support for Discord application commands

This commit is contained in:
Iris System 2023-05-07 16:11:59 +12:00
parent c69ab99519
commit 86717603d3
21 changed files with 452 additions and 18 deletions

View file

@ -0,0 +1 @@
from .types import MessageCommand

View file

@ -0,0 +1,7 @@
class MessageCommand(dict):
COMMAND_TYPE = 3
def __init__(self, name):
super().__init__()
self["type"] = self.__class__.COMMAND_TYPE
self["name"] = name