mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-02 18:03:12 +00:00
feat: Update level commands
This commit is contained in:
parent
8b09e5c0f4
commit
a526183074
2 changed files with 16 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue