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

Did you find this page helpful?