14.options[3][APPLICATION_COMMAND_OPTIONS_TYPE_INVALID]: Sub-command and sub-command group option types are mutually exclusive to all other types
at handleErrors (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:1120:23)
at async SequentialHandler.queueRequest (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:953:14)
at async _REST.request (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:1266:22)
at async client.HandlerCommand (C:\Users\PC\Desktop\LunarDSC official 2.0\src\functions\handlers\HandlerCommand.js:29:7) {
requestBody: {
files: undefined,
json: [
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object]
]
},
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { '14': [Object] }
},
code: 50035,
status: 400,
method: 'PUT',
url: 'https://discord.com/api/v10/applications/1204031267193225286/commands'
}```
#invalid from body
8 messages · Page 1 of 1 (latest)
- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Not a discord.js issue? Check out #1081585952654360687.
- 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 staff
a single command can't have subcommands and other options, u can either have a command with subcommands or regular options, not both
how can I do?
remove the subcommands or the user option from the info command
thanks, for help you can close