Errors in config.json, deploy-commands.js, and index.js
I think I messed up something simple here. I'm following the discord.js guide and I'm this (https://discordjs.guide/creating-your-bot/command-deployment.html#command-registration) section right here, and I'm getting a bunch of errors in vscode despite following the guide step by step. I even copied the index.js, deploy-commands.js, and config.json from the github to make sure it wasn't a typo problem (I edited config.json with my own keys of course). Still no luck.
When I run deploy-commands,js I get picture attached.
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.

21 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!Unknown User•4d ago
Message Not Public
Sign In & Join Server To View

Unknown User•4d ago
Message Not Public
Sign In & Join Server To View
:meguFace:
That fixewd config.js, thanks!
Unknown User•4d ago
Message Not Public
Sign In & Join Server To View
I meant config, I am still gettting 3 errors in index.js
Two are these syntax errors with } else {
and the other im not sure.
Unknown User•4d ago
Message Not Public
Sign In & Join Server To View

yes I know, i just thought it was weird since they were in the github like this
Unknown User•4d ago
Message Not Public
Sign In & Join Server To View
Indent error, I fixed them but here is sitll one more error

Unknown User•4d ago
Message Not Public
Sign In & Join Server To View

Progress....
Progress again!


Unknown User•4d ago
Message Not Public
Sign In & Join Server To View
How can I put my bot online?
run your index.js
TYSM