Reformatted the purge command

pull/8/head
sgoudham 4 years ago
parent cc15903ea7
commit 7d545f73ce

@ -80,6 +80,7 @@ class Moderation(commands.Cog):
@bot_has_guild_permissions(manage_messages=True) @bot_has_guild_permissions(manage_messages=True)
async def purge(self, ctx, amount: int = None): async def purge(self, ctx, amount: int = None):
"""Purge Messages from Channel""" """Purge Messages from Channel"""
if amount: if amount:
if 0 < amount <= 100: if 0 < amount <= 100:
with ctx.channel.typing(): with ctx.channel.typing():

Loading…
Cancel
Save