Command Handler Not Working??
My discord bot does not respond to slash commands, and I do not know the reason why?
12 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 OP
Here is the code, if anyone helps I'd be very thankful haha
If anyone gives me an answer please ping me :)
Tag suggestion for @Wiktor.:
If you aren't getting any errors, try to place
console.log
checkpoints throughout your code to find out where execution stops.
- Once you do, log relevant values and if-conditions
- More sophisticated debugging methods are breakpoints and runtime inspections: learn moreintents? does the bot have the right perms?
there are no intents/perms required just for a bot to receive and respond to an interaction
Doesn't even detect the /ping command
How do I deploy commands?
Oh thanks
@Qjuh
I get this type of error when I run it
I copied and pasted the deploy-commands file
I have read what it does
And I do have all the files
Not exactly sure what you mean
oh lmaoo
sorry