等待操作符将无法在if语句中使用

时间:2018-11-13 02:03:16

标签: python python-3.x async-await discord discord.py

Await在if语句中不起作用。有没有解决的办法。我找了一个小时,却一无所获。

源代码:

https://pastebin.com/fCu1Txg9

如果有帮助,谢谢您的帮助!

错误: Ignoring exception in on_message Traceback (most recent call last): File "C:\Users\student\PycharmProjects\MyStuff\venv\lib\site-packages\discord\client.py", line 307, in _run_event yield from getattr(self, event)(*args, **kwargs) TypeError: on_message() missing 1 required positional argument: 'ctx'

0 个答案:

没有答案