#TypeError: (intermediate value).setToken(...) is not a function
11 messages · Page 1 of 1 (latest)
- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Post the full error stack trace, not just the top part!
- Show your code!
- Explain what exactly your issue is.
- Not a discord.js issue? Check out #useful-servers.
- Issue solved? Press the button!
TypeError: (intermediate value).setToken(...) is not a function
Add a semicolon after setToken(...)
;^; Okay
Thks
But why this error appear ?@arctic ginkgo can you explain me ?
In Js we don't need the semicolon ... no ?
They're necessary in some cases, take yours as an example, if you don't put a semi colon, it gets things mixed up
It's pretty common when working with IIFEs
It reads the next line as a function call