From 7d545f73ceaea2e1680820700d7aaa645947d9a2 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sat, 25 Jul 2020 07:32:01 +0100 Subject: [PATCH] Reformatted the purge command --- cogs/moderation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cogs/moderation.py b/cogs/moderation.py index ea4fce30..c33160e4 100644 --- a/cogs/moderation.py +++ b/cogs/moderation.py @@ -80,6 +80,7 @@ class Moderation(commands.Cog): @bot_has_guild_permissions(manage_messages=True) async def purge(self, ctx, amount: int = None): """Purge Messages from Channel""" + if amount: if 0 < amount <= 100: with ctx.channel.typing():