#trying to add choices to a sub command
14 messages · Page 1 of 1 (latest)
ArgumentError: Expected string choices to be of type array but received type Object
when i did the same on other scripts it worked but adding it to a sub command is not working for some reason
remove the spread operator
still giving me the same error
did you save your code
yes
i did this the exact same on another command but i didnt have it on a sub command but adding choices to the sub command is giving me errors which i dont understand why
wait
You cant add an option and a subcommand to a command
Its either a command with subcommands, or a command with options
so you arent able to add choices to sub commands if they are in a command?
you are able to add choices to a sub command but not the main command