....\node_modules\@discordjs\rest\dist\index.js:730
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^
DiscordAPIError[50035]: Invalid Form Body
data.components[2].components[0][TAG_FIELD_MISSING]: Field "type" is required to determine the model type.
at handleErrors (...\node_modules\@discordjs\rest\dist\index.js:730:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (...\node_modules\@discordjs\rest\dist\index.js:835:23)
at async _REST.request (...\node_modules\@discordjs\rest\dist\index.js:1278:22)
at async ChatInputCommandInteraction.showModal (...\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:256:5)
at async chatInputCommand (file:///.../src/index.js:566:4) {
requestBody: {
files: undefined,
json: {
type: 9,
data: {
title: 'New Mod Report',
custom_id: 'modReportModal',
components: [
{ type: 1, components: [Array] },
{ type: 1, components: [Array] },
{ type: 1, components: [Array] }
]
}
}
},
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: {
data: { components: { '2': { components: [Object] } } }
}
},
code: 50035,
status: 400,
method: 'POST',
}
....\node_modules\@discordjs\rest\dist\index.js:730
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^
DiscordAPIError[50035]: Invalid Form Body
data.components[2].components[0][TAG_FIELD_MISSING]: Field "type" is required to determine the model type.
at handleErrors (...\node_modules\@discordjs\rest\dist\index.js:730:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (...\node_modules\@discordjs\rest\dist\index.js:835:23)
at async _REST.request (...\node_modules\@discordjs\rest\dist\index.js:1278:22)
at async ChatInputCommandInteraction.showModal (...\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:256:5)
at async chatInputCommand (file:///.../src/index.js:566:4) {
requestBody: {
files: undefined,
json: {
type: 9,
data: {
title: 'New Mod Report',
custom_id: 'modReportModal',
components: [
{ type: 1, components: [Array] },
{ type: 1, components: [Array] },
{ type: 1, components: [Array] }
]
}
}
},
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: {
data: { components: { '2': { components: [Object] } } }
}
},
code: 50035,
status: 400,
method: 'POST',
}