From a94c59d9b3e0eee2250767832394dc17fff4a778 Mon Sep 17 00:00:00 2001 From: GrahamSH Date: Thu, 7 Dec 2023 02:40:27 +0000 Subject: [PATCH] Fix checkrolelevels slash command --- dozer/cogs/levels.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dozer/cogs/levels.py b/dozer/cogs/levels.py index 151b52ef..0500b688 100644 --- a/dozer/cogs/levels.py +++ b/dozer/cogs/levels.py @@ -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 = []