diff options
author | 2021-03-13 17:43:55 +0200 | |
---|---|---|
committer | 2021-03-13 17:43:55 +0200 | |
commit | 0f69e00aa55ca7294e71e19ab41b57bef7a9f977 (patch) | |
tree | 7deaf95949693aafc7592dfe7933425ebdc8f6dc /bot/exts/evergreen/status_codes.py | |
parent | Merge pull request #619 from JagTheFriend/master (diff) | |
parent | make invoke_help_command only take ctx (diff) |
Merge pull request #625 from ToxicKidz/no-ctx-send-help
change ctx.send_help to ctx.invoke(help_command)
Diffstat (limited to 'bot/exts/evergreen/status_codes.py')
-rw-r--r-- | bot/exts/evergreen/status_codes.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/evergreen/status_codes.py b/bot/exts/evergreen/status_codes.py index 874c87eb..7c00fe20 100644 --- a/bot/exts/evergreen/status_codes.py +++ b/bot/exts/evergreen/status_codes.py @@ -3,6 +3,8 @@ from http import HTTPStatus import discord from discord.ext import commands +from bot.utils.extensions import invoke_help_command + HTTP_DOG_URL = "https://httpstatusdogs.com/img/{code}.jpg" HTTP_CAT_URL = "https://http.cat/{code}.jpg" @@ -17,7 +19,7 @@ class HTTPStatusCodes(commands.Cog): async def http_status_group(self, ctx: commands.Context) -> None: """Group containing dog and cat http status code commands.""" if not ctx.invoked_subcommand: - await ctx.send_help(ctx.command) + await invoke_help_command(ctx) @http_status_group.command(name='cat') async def http_cat(self, ctx: commands.Context, code: int) -> None: |