TypeError: (intermediate value).setToken(...) is not a function

7 Replies
d.js toolkit
d.js toolkit2y ago
- 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!
STRK Tukitakata
STRK TukitakataOP2y ago
TypeError: (intermediate value).setToken(...) is not a function
MrMythical
MrMythical2y ago
Add a semicolon after setToken(...)
STRK Tukitakata
STRK TukitakataOP2y ago
;^; Okay Thks But why this error appear ?@Myth 🌈 can you explain me ? In Js we don't need the semicolon ... no ?
Danial
Danial2y ago
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
MrMythical
MrMythical2y ago
It reads the next line as a function call
STRK Tukitakata
STRK TukitakataOP2y ago
Okay I get it . Thanks 😄
Want results from more Discord servers?
Add your server