#handle newline in string for build embed
10 messages · Page 1 of 1 (latest)
• 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.
let description = interaction.options.getString(`description`); description.replaceAll("\\n", "\n"); embed.setDescription(description);
still doesn't work
using \\n and \n in string option
description = description.replaceAll(...)
Or
getString(...)?.replaceAll(...)
Or .setDescription(description.replaceAll(...))
bless you variable = variable.replaceall works fine