aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-10-03 22:15:21 -0700
committerGravatar MarkKoz <[email protected]>2019-10-03 22:15:21 -0700
commit82fb11c0e08f6913ce5273a49b269a80c5dd2be4 (patch)
tree4b1b69f94a5d1053f4356979565bbf08745b7f04
parentFix extensions alias (diff)
Invoke the help command when reload is called without args
-rw-r--r--bot/cogs/extensions.py4
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: