discord py how to purge a channel up to a specific code example
Example: discord.py clear command
@client.command()
async def clear(ctx, amount=5):
await ctx.channel.purge(limit=ammount)
@client.command()
async def clear(ctx, amount=5):
await ctx.channel.purge(limit=ammount)