32 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 OPWhat do you mean
Everything should be good
your error disagrees
log whatever you pass into your login call
The code is right
I meant token sorry
In the discord development thing
you didnt copy the client secret did you?
No
The bot token
just show your code
I know, I even resetted it
Code
that is not v14 code
or well
v14 combined with what looks like ai code
Shit
No I just deleted the token
But in between the two ' is the token
show the full error
Error [TokenInvalid]: An invalid token was provided.
at WebSocketManager.connect (C:\Users\win 10\OneDrive\Desktop\FB\node_modules\discord.js\src\client\websocket\WebSocketManager.js:136:26)
at Client.login (C:\Users\win 10\OneDrive\Desktop\FB\node_modules\discord.js\src\client\Client.js:228:21)
at Object.<anonymous> (C:\Users\win 10\OneDrive\Desktop\FB\index.js:59:8)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
code: 'TokenInvalid'
}
Node.js v20.10.0
also unrelated but why are you using / as a prefix but not slash commansd, thats an absolute horrible prefix since it will interfere with slash commands
show the first few characters of the token (its just your client id decoded as base32 or base64)
It is
did you save your code
STRG+S right?
i have no clue what strg is supposed to be
but if it corresponds to ctrl, yes
CTRL
Sorry
Got him online
But the command doesn't work somehow
so your code wasnt saved?
No
Even though I did CTRL+S
But now he's online
Thanks
Still this though
You think this is why?
Because the command doesn't work somehow
It doesn't even show up
Thats not a slash command
Follow the guide
and dont ask ai
It is
It is not
How
thats a regular message command
I just can't get the command to work somehow
as i said
Follow the guide
Dont ask ai