📅  最后修改于: 2022-03-11 14:46:02.846000             🧑  作者: Mango
@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)