aboutsummaryrefslogtreecommitdiffstats
path: root/bot/command.py
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2021-10-06 03:53:08 +0200
committerGravatar GitHub <[email protected]>2021-10-06 03:53:08 +0200
commita1c7a2065679ab1d1a93b78400b7c65914db42ec (patch)
tree9b6002d6dad498882050e2046857b13d7562595d /bot/command.py
parentMerge pull request #890 from python-discord/better-bookmark-error-message (diff)
parentMonkey patch http.send_typing to catch 403s (diff)
Merge pull request #892 from python-discord/catch-403-from-Typing-calls
Monkey patch http.send_typing to catch 403s
Diffstat (limited to 'bot/command.py')
-rw-r--r--bot/command.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/bot/command.py b/bot/command.py
deleted file mode 100644
index 0fb900f7..00000000
--- a/bot/command.py
+++ /dev/null
@@ -1,18 +0,0 @@
-from discord.ext import commands
-
-
-class Command(commands.Command):
- """
- A `discord.ext.commands.Command` subclass which supports root aliases.
-
- A `root_aliases` keyword argument is added, which is a sequence of alias names that will act as
- top-level commands rather than being aliases of the command's group. It's stored as an attribute
- also named `root_aliases`.
- """
-
- def __init__(self, *args, **kwargs):
- super().__init__(*args, **kwargs)
- self.root_aliases = kwargs.get("root_aliases", [])
-
- if not isinstance(self.root_aliases, (list, tuple)):
- raise TypeError("Root aliases of a command must be a list or a tuple of strings.")