invalid from body

DiscordAPIError[50035]: Invalid Form Body
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'
}
DiscordAPIError[50035]: Invalid Form Body
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'
}
4 Replies
d.js toolkit
d.js toolkit•10mo ago
- 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 OP
D4rck_King 🖤
D4rck_King 🖤OP•10mo ago
SourceBin
commandHandler
Instantly share your code with the world.
D4rck_King 🖤
D4rck_King 🖤OP•10mo ago
SourceBin
info
Instantly share your code with the world.
D4rck_King 🖤
D4rck_King 🖤OP•10mo ago
I can't find the problem, can you help me please?
Want results from more Discord servers?
Add your server