diff options
author | 2019-10-03 22:15:21 -0700 | |
---|---|---|
committer | 2019-10-03 22:15:21 -0700 | |
commit | 82fb11c0e08f6913ce5273a49b269a80c5dd2be4 (patch) | |
tree | 4b1b69f94a5d1053f4356979565bbf08745b7f04 | |
parent | Fix extensions alias (diff) |
Invoke the help command when reload is called without args
-rw-r--r-- | bot/cogs/extensions.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/cogs/extensions.py b/bot/cogs/extensions.py index 0d2cc726e..f848b8a52 100644 --- a/bot/cogs/extensions.py +++ b/bot/cogs/extensions.py @@ -92,6 +92,10 @@ class Extensions(commands.Cog): If `*` is given as the name, all currently loaded extensions will be reloaded. If `**` is given as the name, all extensions, including unloaded ones, will be reloaded. """ + if not extensions: + await ctx.invoke(self.bot.get_command("help"), "extensions reload") + return + if len(extensions) > 1: msg = await self.batch_reload(*extensions) else: |