I can't run any d.js commands.
I'm using https://discordjs.guide/creating-your-bot/slash-commands.html#individual-command-files to learn about d.js. I got 3 slash commands, but non of them appears.
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
31 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!have you deployed them to discord?
Yeah.
how?
Like the bot is online.
But no commands appear.
logging into the bot is not the same as deploying the commands
Node version: v20.18.0
i think you're skipping parts of the guide if you don't have a deploy script
Let me see.
wait nm, the registration does come after :mmLol:
And where should I put it?
Nvm, got it.
Wait but.. Guild ID? I want this bot to be public..
@Mark
read the part where it talks about global deployment, not guild
alr lets see if it works
reload your user client (ctrl + r) after deploying
done
still doesnt show
what shows in console when you ran the deploy script?
the deploy scriptlogging in != deploying commands
hang on
now log in and refresh your user client
it works now but
debug your event / command handler
See what fires and where execution stops
how
place console.log's, debugging is basic js
idk js
im learning
still doesnt work
almost
gtg cya later
then i would recommend learning the basics first, #rules 3 #resources
ok