aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/status_codes.py
diff options
context:
space:
mode:
authorGravatar Vivaan Parashar <[email protected]>2021-04-15 19:18:47 +0530
committerGravatar Vivaan Parashar <[email protected]>2021-04-15 19:18:47 +0530
commitc25976c654162cd4222b1d1e1088d978971bcabb (patch)
treeb455db8577d1746d7623e7b891a8549432246eea /bot/exts/evergreen/status_codes.py
parentMerge branch 'master' of https://github.com/python-discord/sir-lancebot (diff)
parentMerge 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.py4
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: