From 446c266f1811371c7b79475a6204710c5670b47c Mon Sep 17 00:00:00 2001 From: Valerie Date: Mon, 26 May 2025 04:15:02 -0400 Subject: [PATCH] Refactor globalboard command in Leaderboard cog to allow the default help command to handle unrecognized subcommands. This change improves command handling and user experience by providing clearer guidance when no specific subcommand is invoked. --- leaderboard/leaderboard.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/leaderboard/leaderboard.py b/leaderboard/leaderboard.py index cafb4dc..926fa41 100644 --- a/leaderboard/leaderboard.py +++ b/leaderboard/leaderboard.py @@ -195,7 +195,8 @@ class Leaderboard(commands.Cog): async def globalboard(self, ctx: commands.Context): """Global leaderboard commands.""" if ctx.invoked_subcommand is None: - await self.show_leaderboard(ctx) + # Let the default help command handle it + return @globalboard.command(name="show") async def show_leaderboard(self, ctx: commands.Context, page: int = 1):