📅  最后修改于: 2022-03-11 14:45:26.970000             🧑  作者: Mango
import asyncio
@client.command()
async def test(ctx):
async def run(msg):
await msg.send("This message is not yours!", hidden=True)
return
def check(msg):
if msg.author.id == ctx.author.id:
return True
else:
asyncio.create_task(run(msg))
return False
ctx = await client.wait_for("message", check=check)
...