Slash Commands not showing up
I followed the discordjs.guide but when I type / in server, I can't see my bot's slash commands.
deploy-commands.js:
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 OPwhat does the execution of the deployment script log to the console?
this is the Discord.JS Guide (i use it so i can help)
the reason your probably aren't seeing the slash commands are
1. you have to reload your Discord client 2. your bot is only pushing guild commandsand 2 is the answer based off of this here this should be ur code
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
i dont see this everytime i run so something is still wrong i believe
well if you're following the guide, the deployment script is purposefully a separate script that doesn't run when your bot runs
you'd run it separately
I wanted to see if they are successfully pushing commands to the api instead of guessing what is happening
:Thonk:
did you successfully deploy the commands to the guild you specified in your config.json file? did you run this script?
it worked now !
thanks