Invalid Form Body

I get an error like this and the bot is active and not responding to commands

Started refreshing application (/) commands.
DiscordAPIError[50035]: Invalid Form Body
application_id[NUMBER_TYPE_COERCE]: Value "undefined" is not snowflake.
    at SequentialHandler.runRequest (C:\Users\dufha\Desktop\Master-Bot-main\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.js:198:23)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async SequentialHandler.queueRequest (C:\Users\dufha\Desktop\Master-Bot-main\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.js:99:20)
    at async C:\Users\dufha\Desktop\Master-Bot-main\index.js:44:5 {
  rawError: {
    code: 50035,
    errors: { application_id: [Object] },
    message: 'Invalid Form Body'
  },
  code: 50035,
  status: 400,
  method: 'put',
  url: 'https://discord.com/api/v9/applications/undefined/commands'
}

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.