diff options
author | 2021-03-12 19:17:39 -0500 | |
---|---|---|
committer | 2021-03-12 19:17:39 -0500 | |
commit | cc72d484115a8acebf0fafe8bb332817168d3acd (patch) | |
tree | fd5ac32633bf9eac9ec0f1f8428014c48d9e5101 /bot/exts/evergreen/space.py | |
parent | change ctx.send_help to ctx.invoke(help_command) (diff) |
make utility invoke_help_command function
Diffstat (limited to 'bot/exts/evergreen/space.py')
-rw-r--r-- | bot/exts/evergreen/space.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/space.py b/bot/exts/evergreen/space.py index e388e13f..305d6721 100644 --- a/bot/exts/evergreen/space.py +++ b/bot/exts/evergreen/space.py @@ -10,6 +10,7 @@ from discord.ext.commands import BadArgument, Cog, Context, Converter, group from bot.bot import Bot from bot.constants import Tokens +from bot.utils.extensions import invoke_help_command logger = logging.getLogger(__name__) @@ -63,8 +64,7 @@ class Space(Cog): @group(name="space", invoke_without_command=True) async def space(self, ctx: Context) -> None: """Head command that contains commands about space.""" - help_command = self.bot.get_command("help") - await ctx.invoke(help_command, ctx.command.name) + await invoke_help_command(ctx, ctx.command.name) @space.command(name="apod") async def apod(self, ctx: Context, date: Optional[str] = None) -> None: |