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?
Solution:Jump to solution
``js
.setDescription([
Message Link: ${targetMessage.ur},
Message Content: "${targetMessage.content}"`,
'',...4 Replies
Solution
tyyyy
@qvgk you can also use dedent
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>