File "main.py", line 16
await message.channel.send('Hi')
^
SyntaxError: : 'await' outside function
I need help!
I need o make a discord bot
File "main.py", line 16
await message.channel.send('Hi')
^
SyntaxError: : 'await' outside function
I need help!
I need o make a discord bot
whats’s your code?
remember that indentation is a fundamental part of python syntax, if you have never used Python before, maybe check a course on basic syntax before doing a Python bot
No, I tried 3 different indentations. And it still didn’t happen, cn you play tell me the amount of spaces
no, I can’t
you have not showed your code, I don’t know what you have written
nvm i got the code right
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.