\node_modules\discord.js\src\rest\RequestHandler.js:350
throw new DiscordAPIError(data, res.status, request);
^
DiscordAPIError: Invalid Form Body
data.components[0]: Value of field "type" must be one of (1,).
at RequestHandler.execute (E:\Hexagon\hexagon-api\discordbot\node_modules\discord.js\src\rest\RequestHandler.js:350:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RequestHandler.push (E:\Hexagon\hexagon-api\discordbot\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at async ButtonInteraction.showModal (E:\Hexagon\hexagon-api\discordbot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:240:5) {
method: 'post',
path: '/interactions/997347808371818546/aW50ZXJhY3Rpb246OTk3MzQ3ODA4MzcxODE4NTQ2OlRaSHV4SXp6aTNMVld5OXpGYnU3bDJZRGeGNuMzdCQ1NDdmZUcTJpa1Q2Vndxa09ITU1xdFNEY1dZ/callback',
code: 50035,
httpStatus: 400,
requestData: {
json: {
type: 9,
data: {
components: [
{
custom_id: 'application-selector',
disabled: false,
placeholder: 'Select the position you want to apply for.',
min_values: null,
max_values: undefined,
options: [Array],
type: 3
}
],
custom_id: 'application-modal',
title: 'Hexagon Career Application'
}
},
files: []
}
}
\node_modules\discord.js\src\rest\RequestHandler.js:350
throw new DiscordAPIError(data, res.status, request);
^
DiscordAPIError: Invalid Form Body
data.components[0]: Value of field "type" must be one of (1,).
at RequestHandler.execute (E:\Hexagon\hexagon-api\discordbot\node_modules\discord.js\src\rest\RequestHandler.js:350:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RequestHandler.push (E:\Hexagon\hexagon-api\discordbot\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at async ButtonInteraction.showModal (E:\Hexagon\hexagon-api\discordbot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:240:5) {
method: 'post',
path: '/interactions/997347808371818546/aW50ZXJhY3Rpb246OTk3MzQ3ODA4MzcxODE4NTQ2OlRaSHV4SXp6aTNMVld5OXpGYnU3bDJZRGeGNuMzdCQ1NDdmZUcTJpa1Q2Vndxa09ITU1xdFNEY1dZ/callback',
code: 50035,
httpStatus: 400,
requestData: {
json: {
type: 9,
data: {
components: [
{
custom_id: 'application-selector',
disabled: false,
placeholder: 'Select the position you want to apply for.',
min_values: null,
max_values: undefined,
options: [Array],
type: 3
}
],
custom_id: 'application-modal',
title: 'Hexagon Career Application'
}
},
files: []
}
}