DiscordAPIError[50035]: Invalid Form Body

Code - https://srcb.in/BPUgexv8SV
DiscordAPIError[50035]: Invalid Form Body
data.components[0].components[2].custom_id[COMPONENT_CUSTOM_ID_DUPLICATED]: Component custom id cannot be duplicated
at handleErrors (C:\Users\fista\Downloads\Nightmess\node_modules\@discordjs\rest\dist\index.js:640:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async BurstHandler.runRequest (C:\Users\fista\Downloads\Nightmess\node_modules\@discordjs\rest\dist\index.js:736:23)
at async REST.request (C:\Users\fista\Downloads\Nightmess\node_modules\@discordjs\rest\dist\index.js:1387:22)
at async ChatInputCommandInteraction.reply (C:\Users\fista\Downloads\Nightmess\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:111:5)
at async Object.execute (C:\Users\fista\Downloads\Nightmess\src\commands\Economy\shop.js:139:21)
at async Object.execute (C:\Users\fista\Downloads\Nightmess\src\events\interactionCreate.js:29:7) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { data: [Object] }
},
code: 50035,
status: 400,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1146172365726810172/aW50ZXJhY3Rpb246MTE0NjE3MjM2NTcyNjgxMDE3MjpuRk96SzNHTnBCaEpnMmI1TndlcW1PTzRLeU1xczdZa2dCUGl6WGdtS0c1NkY0ZlVNdU1GaHlmVFZmVnREUndHQ0F3NldhN1JzNDc4azBBNDU4NzVpRWVMYTR2Slc2S0FVMDl6U1g4REI2UkJQMktaMkVLWUJBd0w5bkN5a1NGaA/callback'
DiscordAPIError[50035]: Invalid Form Body
data.components[0].components[2].custom_id[COMPONENT_CUSTOM_ID_DUPLICATED]: Component custom id cannot be duplicated
at handleErrors (C:\Users\fista\Downloads\Nightmess\node_modules\@discordjs\rest\dist\index.js:640:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async BurstHandler.runRequest (C:\Users\fista\Downloads\Nightmess\node_modules\@discordjs\rest\dist\index.js:736:23)
at async REST.request (C:\Users\fista\Downloads\Nightmess\node_modules\@discordjs\rest\dist\index.js:1387:22)
at async ChatInputCommandInteraction.reply (C:\Users\fista\Downloads\Nightmess\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:111:5)
at async Object.execute (C:\Users\fista\Downloads\Nightmess\src\commands\Economy\shop.js:139:21)
at async Object.execute (C:\Users\fista\Downloads\Nightmess\src\events\interactionCreate.js:29:7) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { data: [Object] }
},
code: 50035,
status: 400,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1146172365726810172/aW50ZXJhY3Rpb246MTE0NjE3MjM2NTcyNjgxMDE3MjpuRk96SzNHTnBCaEpnMmI1TndlcW1PTzRLeU1xczdZa2dCUGl6WGdtS0c1NkY0ZlVNdU1GaHlmVFZmVnREUndHQ0F3NldhN1JzNDc4azBBNDU4NzVpRWVMYTR2Slc2S0FVMDl6U1g4REI2UkJQMktaMkVLWUJBd0w5bkN5a1NGaA/callback'
2 Replies
d.js toolkit
d.js toolkit15mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
souji
souji15mo ago
custom ids of components have to be unique
data.components[0].components[2].custom_id[COMPONENT_CUSTOM_ID_DUPLICATED]: Component custom id cannot be duplicated
Want results from more Discord servers?
Add your server