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'
}
DT
d.js toolkitā€¢93d 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 staff
D
D4rck_King šŸ–¤ā€¢93d ago
SourceBin
commandHandler
Instantly share your code with the world.
SourceBin
info
Instantly share your code with the world.
D
D4rck_King šŸ–¤ā€¢93d ago
I can't find the problem, can you help me please?
X
xx_lavaboy_xx123ā€¢93d ago
a single command can't have subcommands and other options, u can either have a command with subcommands or regular options, not both
D
D4rck_King šŸ–¤ā€¢93d ago
how can I do?
X
xx_lavaboy_xx123ā€¢93d ago
remove the subcommands or the user option from the info command
D
D4rck_King šŸ–¤ā€¢93d ago
thanks, for help you can close
X
xx_lavaboy_xx123ā€¢93d ago
if u think ur issue is solved u can click the blue button on this message to close the thread
Want results from more Discord servers?
Add your server
More Posts
invalid from body```DiscordAPIError[50035]: Invalid Form Body 14.options[3][APPLICATION_COMMAND_OPTIONS_TYPE_INVALID]LatencyAfter I created shards for bot, latency went from 8-10 to 200 and this happens sometimesmodal submit unknown interaction```js await interaction.showModal(modal); //ButtonInteraction const filter = (i) => MODALhey, how can add textlabel in modal please?Add points to multiple users at onceI want to make 3 optional options to add points to multiple users at once, How can I achieve that wiAuthentication failed at WebSocketShard.onCloseI get this error once every few weeks and discord resets my bot's token. ```Unhandled rejection: AutFor some reason my collecter won't work?It doesn't give me an error or anything and ive been debugging for about 6 hours now. Any pointers aEmbed is only sending once every time the slash command is ran every active sessionBy every active session I mean every time the bot is online. I have a slash command that is like anDownload Node JS without admin rightsHello i want to know if it's possible to install node js npm without admin rights please403 Error due to new image expiration?Hey all, I'm unfortunately having issues with a ticket transcript system that I created for my discoGetting: Invalid bitfield flag or number: VIEW_CHANNEL. (creating a text channel)dont rlly know. code: ```js collector.on('collect', async(i) => { const selectioAnonymous bot sub-users (PluralKit)How would I create anonymous bot sub users like what PluralKit and similar bots do? The users are mslash commandshow can creat slash command with open popup(modal) ? plsTrying to join guild by keep getting "you need to update ur app to join this server"im using a cap solver to join the server, i have tried everything - does anyone have any code or a sStock element to send embedsHello guys, is that possible to stock the id of members who react to a message and send an embed to Bot status occasionally reverts back to initial status from the status set in ClientReadyIm using DJS with sharding. I initialize the client with a status of "Starting" and then in ClientReslashhow to make subcommands with rest without slashbuilderhow to check if the message author is in a voice channel?I was looking at the other forum but seems like the original author deleted their post.