Yastrijder
Yastrijder
JCHJava Community | Help. Code. Learn.
Created by Yastrijder on 3/25/2025 in #java-help
Error if i start my bot visual studio code java script index.js
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' }
10 replies