Skip to content

Commit

Permalink
Add missing defer() trigger to /leaderboard_levels
Browse files Browse the repository at this point in the history
  • Loading branch information
notsniped authored May 9, 2024
1 parent 843fd11 commit a0c510c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cogs/levelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ async def edit_xp(self, ctx: ApplicationContext, user: discord.User, new_xp: int
description="View the global leaderboard for user levelling ranks."
)
async def leaderboard_levels(self, ctx: ApplicationContext):
await ctx.defer()
levels = levelling.get_raw()
levels_dict = dict()
for person in levels:
Expand Down

0 comments on commit a0c510c

Please sign in to comment.