ErrorCOMPONENT_LAYOUT_WIDTH_EXCEEDED
—————————————————————————————————
[ AntiCrash ] : Unhandled Rejection/Catch
—————————————————————————————————
DiscordAPIError[50035]: Invalid Form Body
data.components[0].components[1][COMPONENT_LAYOUT_WIDTH_EXCEEDED]: The specified component exceeds the maximum width
data.components[0].components[2][COMPONENT_LAYOUT_WIDTH_EXCEEDED]: The specified component exceeds the maximum width
data.components[0].components[3][COMPONENT_LAYOUT_WIDTH_EXCEEDED]: The specified component exceeds the maximum width
at SequentialHandler.runRequest (/home/container/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.cjs:287:15)
at runMicrotasks (<anonymous>)
4 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.this is the code
interaction.showModal({
title: "Submit a request to MidLight for " + interaction.guild.name,
custom_id: interaction.id,
components: [{
type: 1,
components: [
{
type: 4,
custom_id: "title",
label: "Title",
style: 1,
min_length: 1,
max_length: 20,
placeholder: "Covid news 32/13/0102",
required: true
},
{
type: 4,
custom_id: "description",
label: "Description",
style: 2,
min_length: 1,
max_length: 2000,
placeholder: "33k decessi e 22mrd di contagi...",
required: true
},
{
type: 4,
custom_id: "credits",
label: "Credit",
style: 2,
min_length: 1,
max_length: 2000,
placeholder: "https://...",
required: true
},
{
type: 4,
custom_id: "image",
label: "The news image (1 link)",
style: 2,
min_length: 1,
max_length: 2000,
placeholder: "https://...",
required: true
},
]
}]
})
how can i fix?
A row can only contain one text input builder, so each text input needs its own row
oohhhh
thx