aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/christmas
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/christmas
parentchange ctx.send_help to ctx.invoke(help_command) (diff)
make utility invoke_help_command function
Diffstat (limited to 'bot/exts/christmas')
-rw-r--r--bot/exts/christmas/advent_of_code/_cog.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/christmas/advent_of_code/_cog.py b/bot/exts/christmas/advent_of_code/_cog.py
index bf008ee9..6ba5c2af 100644
--- a/bot/exts/christmas/advent_of_code/_cog.py
+++ b/bot/exts/christmas/advent_of_code/_cog.py
@@ -12,6 +12,7 @@ from bot.constants import (
)
from bot.exts.christmas.advent_of_code import _helpers
from bot.utils.decorators import InChannelCheckFailure, in_month, whitelist_override, with_role
+from bot.utils.extensions import invoke_help_command
log = logging.getLogger(__name__)
@@ -51,8 +52,7 @@ class AdventOfCode(commands.Cog):
async def adventofcode_group(self, ctx: commands.Context) -> None:
"""All of the Advent of 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)
@adventofcode_group.command(
name="subscribe",