25 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!not receiving any error at all
Did you deploy the command?
you mean like this
Yeah, but don't deploy commands each bot startup. You can be rate limited easily. It's better to have a separate file and run it when you have done changes to the data
alright i will fix that later on
but to answer your question then yeah, i did deploy my command
Now restart your Discord app (Ctrl + R)
i already tried
and it has nothing to do with this file right
Log your
commands
. Is the subcommand there?you mean like this

No, the full command data
so like this
Have you used the shortcut, not just closed and open the app?
i tried both tbh
Did you try to run that command? If it is outdated discord will tell you and auto-refresh your commands, if not then you didn't deploy your commands properly
i just do get this return
content: 'ā Please specify a valid subcommand. Use
/instagram config setup
or /instagram config status
.',
this is correct deploying right so i don't see the issue thenWhat does it show in discord? Can you show that?

Yeah so you did not re deploy
it does automatically right when restarting the bot
Add
console.log(interaction.commandGuildId)
to your command execute function. Does it log the id?now i do get this error
This command is outdated, please try again in a few minutes
after adding this console log it did refresh
wtf
Probably you didn't save the file
i did š
always the first time i do check
but it is fixed so whatever
next time i also gonna try to add some console.logs maybe it will refresh then š