Await won't work in an if statement. Is there any work arounds. I looked for like an hour and nothing found about it.
Source Code:
Thank you for the help if I get any!
Error:
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'