1import asyncio
2
3@client.command()
4async def test(ctx):
5
6 async def run(msg):
7 await msg.send("This message is not yours!", hidden=True)
8 return
9
10
11 def check(msg):
12
13 if msg.author.id == ctx.author.id:
14 return True
15 else:
16 asyncio.create_task(run(msg))
17 return False
18
19 ctx = await client.wait_for("message", check=check)
20
21 ...
22