Making arguments appear optional

pull/8/head
sgoudham 4 years ago
parent 6b644eb15c
commit 0847190130

@ -71,7 +71,7 @@ class Moderation(commands.Cog):
@command()
@guild_only()
@has_guild_permissions(manage_messages=True)
async def purge(self, ctx, amount: int):
async def purge(self, ctx, amount: int = None):
"""Purge Messages from Channel"""
if not amount:
amount = 100

Loading…
Cancel
Save