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:
PS H:\discordtunnelbot> node .\src/deploy-commands.js
Started refreshing 2 application (/) commands.
Successfully reloaded 2 application (/) commands.
PS H:\discordtunnelbot> node .\src/deploy-commands.js
Started refreshing 2 application (/) commands.
Successfully reloaded 2 application (/) commands.
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
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! - Marked as resolved by staff
Amgelo
Amgelo2mo ago
can 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
BitMap7487
BitMap7487OP2mo ago
which data would you like to be logged?
Amgelo
Amgelo2mo ago
can be the commands being put or the output of that put, it doesn't really matter
BitMap7487
BitMap7487OP2mo ago
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.
Amgelo
Amgelo2mo ago
so only one command shows up but it should be two?
BitMap7487
BitMap7487OP2mo ago
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. 🤷‍♂️
Amgelo
Amgelo2mo ago
it's a cache issue, refreshing forces that cache to update or using a command that isn't there anymore
BitMap7487
BitMap7487OP2mo ago
well. thanks for the help
Amgelo
Amgelo2mo ago
:blobreach:

Did you find this page helpful?