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.
No description
31 Replies
d.js toolkit
d.js toolkit2mo ago
- 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!
Mark
Mark2mo ago
have you deployed them to discord?
Entroxx
EntroxxOP2mo ago
Yeah.
Mark
Mark2mo ago
how?
Entroxx
EntroxxOP2mo ago
Like the bot is online. But no commands appear.
Mark
Mark2mo ago
logging into the bot is not the same as deploying the commands
Entroxx
EntroxxOP2mo ago
Node version: v20.18.0
Mark
Mark2mo ago
i think you're skipping parts of the guide if you don't have a deploy script
Entroxx
EntroxxOP2mo ago
Let me see.
Mark
Mark2mo ago
wait nm, the registration does come after :mmLol:
d.js docs
d.js docs2mo ago
:guide: Creating Your Bot: Registering slash commands - Command registration > Global commands read more
Entroxx
EntroxxOP2mo ago
And where should I put it? Nvm, got it. Wait but.. Guild ID? I want this bot to be public.. @Mark
Mark
Mark2mo ago
read the part where it talks about global deployment, not guild
Entroxx
EntroxxOP2mo ago
alr lets see if it works
Mark
Mark2mo ago
reload your user client (ctrl + r) after deploying
Entroxx
EntroxxOP2mo ago
done still doesnt show
Mark
Mark2mo ago
what shows in console when you ran the deploy script?
Entroxx
EntroxxOP2mo ago
No description
Mark
Mark2mo ago
the deploy script
logging in != deploying commands
Entroxx
EntroxxOP2mo ago
hang on
Entroxx
EntroxxOP2mo ago
No description
Mark
Mark2mo ago
now log in and refresh your user client
Entroxx
EntroxxOP2mo ago
it works now but
Entroxx
EntroxxOP2mo ago
No description
Entroxx
EntroxxOP2mo ago
No description
treble/luna
treble/luna2mo ago
debug your event / command handler See what fires and where execution stops
Entroxx
EntroxxOP2mo ago
how
treble/luna
treble/luna2mo ago
place console.log's, debugging is basic js
Entroxx
EntroxxOP2mo ago
idk js im learning still doesnt work almost gtg cya later
treble/luna
treble/luna2mo ago
then i would recommend learning the basics first, #rules 3 #resources
Entroxx
EntroxxOP2mo ago
ok
Want results from more Discord servers?
Add your server