From 1e9937a234ecd398f0c298c8504e79a6a6285e9d Mon Sep 17 00:00:00 2001 From: Saphielle Akiyama <64285270+Saphielle-Akiyama@users.noreply.github.com> Date: Sun, 10 May 2020 12:17:50 +0200 Subject: [PATCH] Aliases passed as a list or as a tuple Nothing too important, felt like some people would appreciate it; --- discord/ext/commands/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 7fce002e2..9534f5272 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -147,7 +147,7 @@ class Command(_BaseCommand): then the first line of the long help text is used instead. usage: :class:`str` A replacement for arguments in the default help text. - aliases: :class:`list` + aliases: Union[:class:`list`, :class:`tuple`] The list of aliases the command can be invoked under. enabled: :class:`bool` A boolean that indicates if the command is currently enabled. @@ -234,7 +234,7 @@ class Command(_BaseCommand): self.aliases = kwargs.get('aliases', []) if not isinstance(self.aliases, (list, tuple)): - raise TypeError("Aliases of a command must be a list of strings.") + raise TypeError("Aliases of a command must be a list or a tuple of strings.") self.description = inspect.cleandoc(kwargs.get('description', '')) self.hidden = kwargs.get('hidden', False)