aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/command.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/command.py b/bot/command.py
index 92e61d97e..0fb900f7b 100644
--- a/bot/command.py
+++ b/bot/command.py
@@ -13,3 +13,6 @@ class Command(commands.Command):
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.")