TypeError: (intermediate value).setToken(...) is not a function
still getting this issue for a long time

12 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OP
The code should work fine. Did you save the file?
i will try tomorrow
not sure but, when i shut down my computer there isnt a prompt asking to save a file?
vsc does not prompt to save. you can tell if it's unsaved if there's a white circle by the file name
Make sure you saved your file.
Unsaved:

Saved:

got it 👍
now there is a discordAPIerror

Means your token is invalid.
fixed