📜  discord.py 清除状态 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:26.180000             🧑  作者: Mango

代码示例2
@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)