#Invalid Form Body. Subcommand + group schenanigans
1 messages · Page 1 of 1 (latest)
If someone would mind looking at this command i'd appreciate it :D
any suggestions on changes to how this command is structured is welcome as well
error is plain english, do not mix sub commands and groups with other option types
So subcommands can’t have their own options?
Or is it the style option being mixed with subcommands?
Nothing to do with options.
But yourr nesting of groups/sub commands
There are 3 valid setups;
</NAME SUBCOMMAND_NAME:ID>
</NAME SUBCOMMAND_GROUP SUBCOMMAND_NAME:ID>
</NAME:COMMAND_ID>
Isn't what i have in code the second setup?
a subcommand group with 3 nested subcommands?
oh shit just realised the message with code isnt showing??! 1 sec
No you have the command at same level as subs
As you have a group at second level, you cannot also have options at that level
If you use Sub/Commands
Then the top level cannot immedietly use options
Ok thanks i think I understand.. since i want that option to be available no matter what subcommand is used is there a better way than just pasting it under every subcommand?
No, that's how they work