Making multi-line embed descriptions cleaner

Currently using backticks ( ` ) for embeds but I have to keep them all the way to the left for them to format properly If I put them normally in-line in the code then they look weird and indented on mobile Is there a way to fix this?
No description
Solution:
``js .setDescription([ Message Link: ${targetMessage.ur}, Message Content: "${targetMessage.content}"`, '',...
Jump to solution
4 Replies
Solution
Favna
Favna13mo ago
.setDescription([
`**Message Link:** ${targetMessage.ur}`,
`**Message Content:** "${targetMessage.content}"`,
'',
`**Reported User:** ${targetMessage.author}`,
`**Reported By:** ${interaction.user}`
],join('\n'));
.setDescription([
`**Message Link:** ${targetMessage.ur}`,
`**Message Content:** "${targetMessage.content}"`,
'',
`**Reported User:** ${targetMessage.author}`,
`**Reported By:** ${interaction.user}`
],join('\n'));
Turkinator
TurkinatorOP13mo ago
tyyyy
Lioness100
Lioness10013mo ago
@qvgk you can also use dedent
Spinel
Spinel13mo ago
dedent
An ES6 string tag that strips indentation from multi-line strings ❯ Author: dmnd ❯ Maintainers: dmnd and joshuakgoldberg ❯ Latest version: 1.5.1 ❯ License: MIT ❯ Date Created: <t:1421143865:d> ❯ Date Modified: <t:1690816857:d> Dependencies: No dependencies <:_:637706251253317669>
Want results from more Discord servers?
Add your server