aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/ext/commands/core.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index c594ec97..0463c843 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -149,6 +149,10 @@ class Command:
self.usage = kwargs.get('usage')
self.rest_is_raw = kwargs.get('rest_is_raw', False)
self.aliases = kwargs.get('aliases', [])
+
+ if not isinstance(self.aliases, (list, tuple)):
+ raise TypeError("Aliases of a command must be a list of strings.")
+
self.description = inspect.cleandoc(kwargs.get('description', ''))
self.hidden = kwargs.get('hidden', False)
signature = inspect.signature(callback)