Process exited with code 1
Hello! I have a tiny problem, I'm not sure If It's much of a problem tho. I can still run my coding and my Discord bot turns on, I'm just curious on what this Is about and how to properly solve this tiny Issue.
I've been following the step-by-step things to do In the Discord.js guide website. I've came across this coding:
I copied and pasted this Into my coding and edited In my own way. I've properly made the folder and file for this Slash Command:
After I've ran these lines of coding, It gave me the "Process exited with code 1". Again, I can still run my code and my Discord bot turns on, I've just curious on what this means and how to properly solve this tiny Issue.
3 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!I got v20.7.0
Use a try catch block and await the command.execute line and log the error