From a526183074aa29fe74483e269b730178020d39f5 Mon Sep 17 00:00:00 2001 From: wlinator Date: Sun, 1 Sep 2024 08:12:32 -0400 Subject: [PATCH] feat: Update level commands --- modules/levels/leaderboard.py | 9 ++++++++- modules/levels/level.py | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/modules/levels/leaderboard.py b/modules/levels/leaderboard.py index eec0f3f..a845568 100644 --- a/modules/levels/leaderboard.py +++ b/modules/levels/leaderboard.py @@ -15,9 +15,16 @@ class Leaderboard(commands.Cog): @commands.hybrid_command( name="leaderboard", aliases=["lb"], - usage="leaderboard", ) async def leaderboard(self, ctx: commands.Context[commands.Bot]) -> None: + """ + Get the leaderboard for the server. + + Parameters + ---------- + ctx : commands.Context[commands.Bot] + The context of the command. + """ guild: Guild | None = ctx.guild if not guild: return diff --git a/modules/levels/level.py b/modules/levels/level.py index 8eb19be..01a1f62 100644 --- a/modules/levels/level.py +++ b/modules/levels/level.py @@ -13,9 +13,16 @@ class Level(commands.Cog): @commands.hybrid_command( name="level", aliases=["rank", "lvl", "xp"], - usage="level", ) async def ping(self, ctx: commands.Context[commands.Bot]) -> None: + """ + Get the level of the user. + + Parameters + ---------- + ctx : commands.Context[commands.Bot] + The context of the command. + """ if not ctx.guild: return