what's wrong?
i don't know what's wrong, can someone help me? (i already reset the token)
38 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!how are you running the bot
the bot is offline
because there is this step
but how are you starting it
Or well, attempting to start
with what command
this one
thats not how you start a node process
node <file>
the error cannot be more clearer
Unknown User•3d ago
Message Not Public
Sign In & Join Server To View
i said i reset it
Unknown User•3d ago
Message Not Public
Sign In & Join Server To View
and use secrets, like dotenv or a config file
yes i saved it
Unknown User•3d ago
Message Not Public
Sign In & Join Server To View
but did you actually replace your token
yes
Unknown User•3d ago
Message Not Public
Sign In & Join Server To View
i've checked every single number and letter
it's the right one
i'll make a new token
discord disagrees
Unknown User•3d ago
Message Not Public
Sign In & Join Server To View
ok i restarted vscode, it now works.
thank you :)
now what did i do wrong?
Unknown User•2d ago
Message Not Public
Sign In & Join Server To View
i put it
Okay, but how are you using it? Put where? Show the relevent code
Unknown User•2d ago
Message Not Public
Sign In & Join Server To View
i put it in .env
i showed everything except the token
How you are using it?Show your register-command.js
(sorry, there are some thing in italian)
Unknown User•2d ago
Message Not Public
Sign In & Join Server To View
yes i saved
Unknown User•2d ago
Message Not Public
Sign In & Join Server To View
You cutoff the only relevant part, and that code is just wrong, you are not actually passing the guild id to the applicationGuildCommands method, and i suspect you do as a second parameter to put method and close the parenthesis without actually passing the body
Unknown User•2d ago
Message Not Public
Sign In & Join Server To View
what do I need to change?
What i said?