From aad00865de32d5a09dbe4554ab71de9e26ee2909 Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Wed, 30 Jun 2021 19:48:24 -0600 Subject: [PATCH] Add defer on purge for long purges --- jarvis/cogs/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/jarvis/cogs/admin.py b/jarvis/cogs/admin.py index a147e0e..510f570 100644 --- a/jarvis/cogs/admin.py +++ b/jarvis/cogs/admin.py @@ -102,6 +102,7 @@ class AdminCog(commands.Cog): ) @commands.has_permissions(manage_messages=True) async def _purge_slash(self, ctx, amount: int = 30): + await ctx.defer() await self._purge(ctx, amount)