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