How to make a new line in app command string option type.

.addStringOption((option) =>
option
.setName('description')
.setDescription('set the description of the embed')

)
.addStringOption((option) =>
option
.setName('description')
.setDescription('set the description of the embed')

)
when inputting the option i am trying to do a new line, it will not let me is there anything i can add to allow this? P.S. I am making a embed command if that helps any
6 Replies
d.js toolkit
d.js toolkit3d 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! - Marked as resolved by OP
TÆMBØ
TÆMBØ3d ago
Discord limitation. Use a modal with a paragraph style text input field if you want to have multi-line string inputs
RateLimited
RateLimitedOP3d ago
I am newer to discord.js switching from discord.py can you please explain.
TÆMBØ
TÆMBØ3d ago
What you are trying to do is not possible with a slash command string option, it's a limitation imposed by Discord themselves. If you want to be able to receive text from a user with multi-line support, you should instead prompt the user with a modal that has a paragraph-styled text input field
d.js docs
d.js docs3d ago
:guide: Other Interactions: Modals read more
RateLimited
RateLimitedOP3d ago
thank you, i will look over this

Did you find this page helpful?