@bot.command() async def clear(ctx, amount=5): await ctx.channel.purge(limit=amount) or @client.command() async def clear(ctx, amount=5): await ctx.channel.purge(limit=amount)