1@client.command()
2async def clear(ctx, amount=5):
3 await ctx.channel.purge(limit=ammount)
1@bot.command()
2async def clear(ctx, amount=5):
3 await ctx.channel.purge(limit=amount)
4
5or
6
7@client.command()
8async def clear(ctx, amount=5):
9 await ctx.channel.purge(limit=amount)