Skip to content

Commit

Permalink
Merge pull request #458 from GrahamSH-LLK/checklevelroles
Browse files Browse the repository at this point in the history
Fix checkrolelevels slash command
  • Loading branch information
tweirtx authored Dec 18, 2023
2 parents e6d4345 + a94c59d commit 5151b2f
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 5151b2f

Please sign in to comment.