DiscordAPIError[50035]: Invalid Form Body
1.options[2][APPLICATION_COMMAND_OPTIONS_REQUIRED_INVALID]: Required options must be placed before non-required options
at handleErrors (C:\Users\ALYA060711\Downloads\Discord REALL\node_modules@discordjs\rest\dist\index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async SequentialHandler.runRequest (C:\Users\ALYA060711\Downloads\Discord REALL\node_modules@discordjs\rest\dist\index.js:1128:23)
at async SequentialHandler.queueRequest (C:\Users\ALYA060711\Downloads\Discord REALL\node_modules@discordjs\rest\dist\index.js:959:14)
at async _REST.request (C:\Users\ALYA060711\Downloads\Discord REALL\node_modules@discordjs\rest\dist\index.js:1272:22) {
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]
]
},
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { '1': [Object] }
},
code: 50035,
status: 400,
method: 'PUT',
url: 'https://discord.com/api/v10/applications/1349401681623781427/guilds/1168802422425137164/commands'
}
#Error if i start my bot visual studio code java script index.js
9 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @crude drum! Please use
/closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Please format your code to make it more readable.
For java, it should look like this:
````java
public void foo() {
}
````

It's Java forum, try get help in JavaScript forums
This is not a JavaScript server. Java and JavaScript are completely different languages. See: How is JavaScript different from Java?