Problem with the loading of 3 commands
hello ! I've a problem with 3 of my commands, that load properly but they are not shown in the discord integrations of the discord settings of my server, they are showed when i use bot.command.forEach but still can't use them
5 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.Did you deploy them?
Yes, all my others commands work, and they use the same method to load
this one
This is one of the command that didnt show up, but it show as loaded in my console
and the method i use to check all commands files
Commands array should be an array of command data, not builders. You should have received an error. Use
commands.push(slashcommand.toJSON())
i didnt have any error
so i changed and it is still the same
guess it is not from that
i really don't understand
oh i see where the problem is, it is only for commands that didnt have any option
My bad, that was just a scope error
thanks !
thanks @joe376 too