Skip to content

Commit

Permalink
Fix checkrolelevels slash command
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamSH-LLK committed Dec 7, 2023
1 parent e6d4345 commit a94c59d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dozer/cogs/levels.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ async def checkrolelevels(self, ctx: DozerContext):
unsorted = self._level_roles.get(ctx.guild.id)
embed = discord.Embed(title=f"Level roles for {ctx.guild}", color=blurple)
if unsorted:
await ctx.defer()
roles = sorted(unsorted, key=lambda entry: entry.level) # Sort roles based on level
embeds = []

Expand Down

0 comments on commit a94c59d

Please sign in to comment.