Await在if语句中不起作用。有没有解决的办法。我找了一个小时,却一无所获。
源代码:
如果有帮助,谢谢您的帮助!
错误:
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'