aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaphielle Akiyama <[email protected]>2020-05-10 12:17:50 +0200
committerRapptz <[email protected]>2020-05-10 17:02:56 -0400
commit1e9937a234ecd398f0c298c8504e79a6a6285e9d (patch)
tree4978f488f25a1de520d76edcc9dbb7d823ec12c7
parentUse GuildChannel abc for CategoryChannel edit (diff)
downloaddiscord.py-1e9937a234ecd398f0c298c8504e79a6a6285e9d.tar.xz
discord.py-1e9937a234ecd398f0c298c8504e79a6a6285e9d.zip
Aliases passed as a list or as a tuple
Nothing too important, felt like some people would appreciate it;
-rw-r--r--discord/ext/commands/core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index 7fce002e..9534f527 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)