Coding Global Background
Coding Global

syntax error with Async

Archived 3 years ago
3 messages
1 members
3 years ago
Open in Discord
P
1.618033988749894848204586834365

syntax error, need help ```py #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 ```

Replies (3)