Buttons error
i want to do 3 buttons width and 8 length in total 24 buttons but its not working it keep giving me this error
components[BASE_TYPE_MAX_LENGTH]: Must be 5 or fewer in length.
at handleErrors (C:\Users\abod2\OneDrive\Desktop\2024-02-12\2024-02-12\Gamble\botas\node_modules@discordjs\rest\dist\index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (C:\Users\abod2\OneDrive\Desktop\2024-02-12\2024-02-12\Gamble\botas\node_modules@discordjs\rest\dist\index.js:1021:23)
at async SequentialHandler.queueRequest (C:\Users\abod2\OneDrive\Desktop\2024-02-12\2024-02-12\Gamble\botas\node_modules@discordjs\rest\dist\index.js:862:14)
at async REST.request (C:\Users\abod2\OneDrive\Desktop\2024-02-12\2024-02-12\Gamble\botas\node_modules@discordjs\rest\dist\index.js:1387:22) at async InteractionWebhook.send (C:\Users\abod2\OneDrive\Desktop\2024-02-12\2024-02-12\Gamble\botas\node_modules\discord.js\src\structures\Webhook.js:222:15)
at async Object.execute (C:\Users\abod2\OneDrive\Desktop\2024-02-12\2024-02-12\Gamble\botas\src\commands\currency\misc\towers.js:83:28) { requestBody: { files: [], json: { content: undefined, tts: false, nonce: undefined, embeds: [Array], components: [Array], username: undefined, avatar_url: undefined, allowed_mentions: undefined, flags: undefined, message_reference: undefined, attachments: undefined, sticker_ids: undefined, thread_name: undefined } }, rawError: { message: 'Invalid Form Body', code: 50035, errors: { components: [Object] } }, code: 50035, status: 400, method: 'POST', url: '' }
at async SequentialHandler.queueRequest (C:\Users\abod2\OneDrive\Desktop\2024-02-12\2024-02-12\Gamble\botas\node_modules@discordjs\rest\dist\index.js:862:14)
at async REST.request (C:\Users\abod2\OneDrive\Desktop\2024-02-12\2024-02-12\Gamble\botas\node_modules@discordjs\rest\dist\index.js:1387:22) at async InteractionWebhook.send (C:\Users\abod2\OneDrive\Desktop\2024-02-12\2024-02-12\Gamble\botas\node_modules\discord.js\src\structures\Webhook.js:222:15)
at async Object.execute (C:\Users\abod2\OneDrive\Desktop\2024-02-12\2024-02-12\Gamble\botas\src\commands\currency\misc\towers.js:83:28) { requestBody: { files: [], json: { content: undefined, tts: false, nonce: undefined, embeds: [Array], components: [Array], username: undefined, avatar_url: undefined, allowed_mentions: undefined, flags: undefined, message_reference: undefined, attachments: undefined, sticker_ids: undefined, thread_name: undefined } }, rawError: { message: 'Invalid Form Body', code: 50035, errors: { components: [Object] } }, code: 50035, status: 400, method: 'POST', url: '' }
4 Replies
- 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!
- ✅
Marked as resolved by OPhere is the code
i want it like that but more buttons 3x8
when i add more than 12 totalbuttons it gives me the up error
oohh
even if 3x8
?
cuz its less than 25
oo okay thanks