Search
Get Started
d-I❄
discord.js - Imagine ❄
•
3y ago
aercaii
TypeError: (intermediate value).setToken(...) is not a function
still getting this issue for a long time
discord.js - Imagine ❄
Join
Support server for discord.js, a Node.js module to interact with Discord's apps API.
58,353
Members
View on Discord
Was this page helpful?
Yes
No
D
d.js toolkit
•
10/24/23, 5:45 AM
What
's your exact discord
.js
npm list discord.js
npm list discord.js
and node
node -v
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
A
aercaii
OP
•
10/24/23, 5:46 AM
S
Syjalo
•
10/24/23, 5:48 AM
The code should work fine
. Did you save the file
?
A
aercaii
OP
•
10/24/23, 5:56 AM
i will try tomorrow
S
Syjalo
The code should work fine. Did you save the file?
A
aercaii
OP
•
10/24/23, 3:38 PM
not sure but
, when i shut down my computer there isnt a prompt asking to save a file
?
M
Mark
•
10/24/23, 3:58 PM
vsc does not prompt to save
. you can tell if it
's unsaved if there
's a white circle by the file name
ʍ
ʍǝɹpuɐ
•
10/24/23, 5:04 PM
Make sure you saved your file
.
ʍ
ʍǝɹpuɐ
•
10/24/23, 5:04 PM
Unsaved
:
ʍ
ʍǝɹpuɐ
•
10/24/23, 5:05 PM
Saved
:
A
aercaii
OP
•
10/24/23, 9:21 PM
got it
A
aercaii
OP
•
10/24/23, 11:12 PM
now there is a discordAPIerror
A
aercaii
now there is a discordAPIerror
D
DeveloperPop
•
10/24/23, 11:47 PM
Means your token is invalid
.
A
aercaii
OP
•
10/24/23, 11:52 PM
fixed