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():