Discord slash commands aren't registering
I followed the tutorial on youtube. I rewatched it. Everything is good with the script. The slash command isn't registering. It isn't showing in the / space.
Before you all start, yes i have invited my bot with application command permission, i reinvited it 3 times. I reseted the token. I've ran the script. I have no idea what's wrong.
29 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 OPDoes anything print to console?
nope
only the console.log
What prints
The success message?
PS C:\Users\Glitc\Documents\Projects\Bot> node src/register-commands.js
Registering slash commands...
Registered succesfully!
PS C:\Users\Glitc\Documents\Projects\Bot>
yes
the success message
Make sure the guild id there matches yours, and also reload your user client
yep, nuffin

alright
both good
client id and guild id both are alright
i reloaded the client
Could try doing a global deploy instead of guild by changing the route, just remove the guild part and take the guild id out as well
how to global?
i'm completely new
Also, might be worth trying with the deploy script in the d.js guide, not a YouTube tutorial
I included the parts that you would need to modify in the message for global commands
d.js guide is confusing
i followed it twice
When you say new, do you mean to coding or d.js
d.js
i know javascript
and html
and
css
and lua
not the best
but i made a pokemon website as a project
fetch data from an api
and sum other simple ideas
okei T~T
imma try the guide once again after i'm done with stuff
Your put method is incorrect
oh
but for the dude it worked
a year ago
It should be .put(Routes...(), body: {...})
You're closing the put brackets before the body
oh-
uhm
aksmldsjfbkdgiufdoivjo'psk[p
lac;a:"slamldnsfbdghj
i feel embarrased
wait lemme check
wth
I pulled up the guide page to compare the code because I thought something was off with yours
:😭
the gguy did the same
i didn't notice it!
i swear!!!1111!!!
i didn't!
¯\_(ツ)_/¯
don't bully me!
This is why we have the written guide, and it's tested to work. The library maintainers wrote it
thank you!
i'll check the guide from now on!
if i encounter problems!
thank you!
god bless you!
We're here to help, good luck with your project
let your pillows be cold(good way)
let your food cool down to the perfect spot
uh
let that you don't burn your mouth
let that you always have food!
uh
have a wonderfull day!