Skip to content
await error
Profile icon
RmyDahGod

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
19wintersp

You can only use await inside of an async function.

Profile icon
19wintersp

@xxpertHacker
That's unrelated, this is Python

Profile icon
xxpertHacker

@19wintersp
How was I supposed to have known?

Screenshot 2021-02-08 at 7.06.57 AM