diff options
author | 2021-04-15 19:18:47 +0530 | |
---|---|---|
committer | 2021-04-15 19:18:47 +0530 | |
commit | c25976c654162cd4222b1d1e1088d978971bcabb (patch) | |
tree | b455db8577d1746d7623e7b891a8549432246eea /bot/exts/evergreen/status_codes.py | |
parent | Merge branch 'master' of https://github.com/python-discord/sir-lancebot (diff) | |
parent | Merge pull request #679 from python-discord/vcokltfre/fix/timed-error-help (diff) |
Update branch
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: |