Skip to content
await error
Profile icon

hi. i am trying to make a discord chat bot.
when i put in “await”
there is this error appearing : Syntax Error : ‘await’ outside function

You are viewing a single comment. View All
Answered by KHZ [earned 5 cycles]
View Answer
Profile icon

You can only use await inside of an async function.

Profile icon

That's unrelated, this is Python

Profile icon

How was I supposed to have known?

Screenshot 2021-02-08 at 7.06.57 AM