[cleanup] fix error in [p]cleanup spam command (#5879)

This commit is contained in:
keqking 2022-10-13 15:27:41 +05:30 committed by GitHub
parent 64e6044aba
commit 1cb5836db4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -733,7 +733,7 @@ class Cleanup(commands.Cog):
) )
to_delete.append(ctx.message) to_delete.append(ctx.message)
await mass_purge(to_delete, ctx.channel, "Duplicate message cleanup") await mass_purge(to_delete, ctx.channel, reason="Duplicate message cleanup")
await self.send_optional_notification(len(to_delete), ctx.channel, subtract_invoking=True) await self.send_optional_notification(len(to_delete), ctx.channel, subtract_invoking=True)
@commands.group() @commands.group()