Making arguments appear optional

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

@ -71,7 +71,7 @@ class Moderation(commands.Cog):
@command() @command()
@guild_only() @guild_only()
@has_guild_permissions(manage_messages=True) @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""" """Purge Messages from Channel"""
if not amount: if not amount:
amount = 100 amount = 100

Loading…
Cancel
Save