Add defer on purge for long purges

This commit is contained in:
Zeva Rose 2021-06-30 19:48:24 -06:00
parent 474089e10b
commit aad00865de

View file

@ -102,6 +102,7 @@ class AdminCog(commands.Cog):
) )
@commands.has_permissions(manage_messages=True) @commands.has_permissions(manage_messages=True)
async def _purge_slash(self, ctx, amount: int = 30): async def _purge_slash(self, ctx, amount: int = 30):
await ctx.defer()
await self._purge(ctx, amount) await self._purge(ctx, amount)