Add defer on purge for long purges
This commit is contained in:
parent
474089e10b
commit
aad00865de
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue