I haven't fully figured out subcommands yet
This code of my command
command wont show in server, could this be due to the fact that I do not have a file with the main command, but only with a subcommand?
9 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 OPdid you deploy the commands
yes
What do you mean?
If you are wondering whether it is uploaded to the server as an application, then yes.
do u have main command file?
The bot logs its upload as successful.
I don’t fully understand how subcommands work, should I have a file with a main command and a subcommand, or can this be implemented in one file.
Or the main command file is not required when building subcommands.
Maybe there is some example so that I can fully understand how it works?
@Qjuh
I didn’t understand almost anything in the documentation, it says to combine previous already created commands, I tried creating a command in another file and specifying it as a subcommand in another, but the result is the same.
The problem is that it is deployed on the server, according to the console.
I just rebooted again, I'll give it time
@Qjuh
Ok
loging
and console output
09.02 15:24:34 [Bot] [Log] Начата загрузка 6 приложения (/) команд.
09.02 15:24:35 [Bot] [Log] Загрузка 6 приложения (/) команд завершена.
first command file
seccond comand file
Success i repair that