TypeError: (intermediate value).setToken(...) is not a function
7 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- 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 ?@Myth 🌈 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
Okay I get it . Thanks 😄