Made sure that messages purged display proper number

pull/8/head
sgoudham 4 years ago
parent 73dff3d5d1
commit 00f86137a7

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

Loading…
Cancel
Save