MODAL

hey, how can add textlabel in modal please?
9 Replies
d.js toolkit
d.js toolkit11mo 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!
d.js docs
d.js docs11mo ago
Suggestion for @! Georgina: :guide: Other Interactions: Modals - Building and responding with modals read more
Marion Maréchal
Marion MaréchalOP11mo ago
i don't see any text label ChatGPT gave me this :
Discord.TextAreaBuilder()
Discord.TextAreaBuilder()
but that don't work
ShompiFlen
ShompiFlen11mo ago
Do not use chatgpt to generate code for discord.js. Do not blindly copy and paste ai generated code and then ask here why it doesnt work Read the guide, learn about how to code in javascript, then try to code it yourself and if then it doesnt work ask here. Do not come here for us to fix gpt generated code for you.
Marion Maréchal
Marion MaréchalOP11mo ago
No I don't use ChatGPT to create code but to have functions a little like if I use Google, it's simpler and faster but it doesn't work all the time
ShompiFlen
ShompiFlen11mo ago
yea ok so click here on read more, it will take you to the discordjs guide, read the article and you should be able to create a modal With a TextInput
Marion Maréchal
Marion MaréchalOP11mo ago
i have find .setLabel but the max of char is 45 Can you tell me if there is a module for the modal or can I put a text in it?
3D_MAMA
3D_MAMA11mo ago
Modals currently only support short and long text inputs. There is no way to put a paragraph (e.g. to explain things) in there.
Marion Maréchal
Marion MaréchalOP11mo ago
oh ok thanks modal have event for lunch script when is sumbit ?
Want results from more Discord servers?
Add your server