From c3a64b1afa367c30321932370a0ab11492234741 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sat, 25 Jul 2020 07:17:56 +0100 Subject: [PATCH] Made purge command work properly --- cogs/moderation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/moderation.py b/cogs/moderation.py index 3f1cf854..d64f2d32 100644 --- a/cogs/moderation.py +++ b/cogs/moderation.py @@ -87,7 +87,7 @@ class Moderation(commands.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) else: await ctx.send("The amount provided is not between **0** and **100**")