#syntax error with Async

3 messages · Page 1 of 1 (latest)

solar geyser
#

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 
prime orbit
solar geyser
#

no it was because it was running in python 2 💀