Bot doesnt register new / Command
Okay, I have created a deploy-commands.js with after making it so I dont have to create command folders results in the following code:
https://pastecode.io/s/e4zexuod
which when I run gives the following output:
But now when I run my bot it says it has loaded the command but when I try to search for it in my bot test server it doesnt show up. Can anyone tell me what is going on and what I did wrong?
10 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 staffcan you log your data and show that output
or just in case first try refreshing your app
ctrl + r
since that's the fastest possible fix
which data would you like to be logged?
can be the commands being put or the output of that put, it doesn't really matter
okay. seems like there is no need for that. It just seems that refreshing the app made my command pop up. Why it registered one command and shows it but not another is weird but it has shown up now.
so only one command shows up but it should be two?
well sort of. Only one command showed before the refresh but now both show after
so it's fixed and if ever a command doesnt show up I now know what I got to do I guess
still think it's weird tho, but who am I to complain. 🤷♂️
it's a cache issue, refreshing forces that cache to update
or using a command that isn't there anymore
well. thanks for the help
:blobreach: