#Error if i start my bot visual studio code java script index.js

9 messages · Page 1 of 1 (latest)

crude drum
#

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'
}

honest oarBOT
#

This post has been reserved for your question.

Hey @crude drum! Please use /close or the Close Post button 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.

honest oarBOT
buoyant whale
crude drum
#

Its a error hehhh

buoyant whale
honest oarBOT