what's wrong?

i don't know what's wrong, can someone help me? (i already reset the token)
No description
38 Replies
d.js toolkit
d.js toolkit3d 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!
treble/luna
treble/luna3d ago
how are you running the bot
Gtto₇₀₇₇₄
the bot is offline because there is this step
treble/luna
treble/luna3d ago
but how are you starting it Or well, attempting to start with what command
Gtto₇₀₇₇₄
this one
treble/luna
treble/luna3d ago
thats not how you start a node process node <file>
treble/luna
treble/luna3d ago
the error cannot be more clearer
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
Gtto₇₀₇₇₄
i said i reset it
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
treble/luna
treble/luna3d ago
and use secrets, like dotenv or a config file
Gtto₇₀₇₇₄
yes i saved it
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
treble/luna
treble/luna3d ago
but did you actually replace your token
Gtto₇₀₇₇₄
yes
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
Gtto₇₀₇₇₄
i've checked every single number and letter it's the right one i'll make a new token
treble/luna
treble/luna3d ago
discord disagrees
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
Gtto₇₀₇₇₄
ok i restarted vscode, it now works. thank you :)
Gtto₇₀₇₇₄
now what did i do wrong?
No description
Unknown User
Unknown User2d ago
Message Not Public
Sign In & Join Server To View
Gtto₇₀₇₇₄
i put it
NyR
NyR2d ago
Okay, but how are you using it? Put where? Show the relevent code
Unknown User
Unknown User2d ago
Message Not Public
Sign In & Join Server To View
Gtto₇₀₇₇₄
i put it in .env i showed everything except the token
NyR
NyR2d ago
How you are using it?
Show your register-command.js
Gtto₇₀₇₇₄
(sorry, there are some thing in italian)
No description
Unknown User
Unknown User2d ago
Message Not Public
Sign In & Join Server To View
Gtto₇₀₇₇₄
yes i saved
Unknown User
Unknown User2d ago
Message Not Public
Sign In & Join Server To View
NyR
NyR2d ago
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
Unknown User2d ago
Message Not Public
Sign In & Join Server To View
Gtto₇₀₇₇₄
what do I need to change?
NyR
NyR2d ago
What i said?
d.js docs
d.js docs2d ago
:guide: Creating Your Bot: Registering slash commands read more

Did you find this page helpful?