#invalid from body

1 messages · Page 1 of 1 (latest)

river coral
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'
}```