📅  最后修改于: 2022-03-11 14:46:22.281000             🧑  作者: Mango
client = commands.Bot(command_prefix='-')
@client.command(name='clear', help='this command will clear msgs')
async def clear(ctx, amount = 5):
await ctx.channel.purge(limit=amount)