|
|
|
@ -432,7 +432,7 @@ class Moderation(Cog):
|
|
|
|
|
deleted = await ctx.channel.purge(limit=amount + 1,
|
|
|
|
|
after=datetime.datetime.utcnow() - timedelta(days=14))
|
|
|
|
|
|
|
|
|
|
await ctx.send(f"Deleted **{len(deleted):,}** messages.", delete_after=5)
|
|
|
|
|
await ctx.send(f"Deleted **{(len(deleted)) - 1:,}** messages.", delete_after=5)
|
|
|
|
|
|
|
|
|
|
# Send error if amount is not between 0 and 100
|
|
|
|
|
else:
|
|
|
|
@ -447,7 +447,7 @@ class Moderation(Cog):
|
|
|
|
|
deleted = await ctx.channel.purge(limit=51,
|
|
|
|
|
after=datetime.datetime.utcnow() - timedelta(days=14))
|
|
|
|
|
|
|
|
|
|
await ctx.send(f"Deleted **{len(deleted):,}** messages.", delete_after=5)
|
|
|
|
|
await ctx.send(f"Deleted **{(len(deleted)) - 1:,}** messages.", delete_after=5)
|
|
|
|
|
|
|
|
|
|
@Cog.listener()
|
|
|
|
|
async def on_raw_bulk_message_delete(self, payload):
|
|
|
|
|