#syntax error with Async
3 messages · Page 1 of 1 (latest)
2 possible errors i could sense is that the second async is intended for some reason or that u ddin't give the username function a body
no it was because it was running in python 2 💀
3 messages · Page 1 of 1 (latest)
syntax error, need help
#The function
@tree.command(name = "username", description = "Generate a random Username")
async def username(interaction):
#code here
#The error
async def username(interaction):
^
SyntaxError: invalid syntax
#Info:
#Visual Studio Code Insiders, 3.8.2 64 bit python, Code Runner
2 possible errors i could sense is that the second async is intended for some reason or that u ddin't give the username function a body
no it was because it was running in python 2 💀