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

still getting this issue for a long time
No description
12 Replies
d.js toolkit
d.js toolkit8mo ago
- 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
aercaii
aercaii8mo ago
No description
Syjalo
Syjalo8mo ago
The code should work fine. Did you save the file?
aercaii
aercaii8mo ago
i will try tomorrow not sure but, when i shut down my computer there isnt a prompt asking to save a file?
Mark
Mark8mo ago
vsc does not prompt to save. you can tell if it's unsaved if there's a white circle by the file name
RandomNoob
RandomNoob8mo ago
Make sure you saved your file.
RandomNoob
RandomNoob8mo ago
Unsaved:
No description
RandomNoob
RandomNoob8mo ago
Saved:
No description
aercaii
aercaii8mo ago
got it 👍
aercaii
aercaii8mo ago
now there is a discordAPIerror
No description
DeveloperPop
DeveloperPop8mo ago
Means your token is invalid.
aercaii
aercaii8mo ago
fixed