aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/status_codes.py
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-03-12 19:17:39 -0500
committerGravatar ToxicKidz <[email protected]>2021-03-12 19:17:39 -0500
commitcc72d484115a8acebf0fafe8bb332817168d3acd (patch)
treefd5ac32633bf9eac9ec0f1f8428014c48d9e5101 /bot/exts/evergreen/status_codes.py
parentchange ctx.send_help to ctx.invoke(help_command) (diff)
make utility invoke_help_command function
Diffstat (limited to 'bot/exts/evergreen/status_codes.py')
-rw-r--r--bot/exts/evergreen/status_codes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/status_codes.py b/bot/exts/evergreen/status_codes.py
index d06724eb..a037e117 100644
--- a/bot/exts/evergreen/status_codes.py
+++ b/bot/exts/evergreen/status_codes.py
@@ -2,6 +2,7 @@ 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,8 +18,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:
- help_command = self.bot.get_command("help")
- await ctx.invoke(help_command, ctx.command.name)
+ await invoke_help_command(ctx, ctx.command.name)
@http_status_group.command(name='cat')
async def http_cat(self, ctx: commands.Context, code: int) -> None: