I'm working on a whois slash command for a Discord Bot and I want to display the tag for the user selected within a command block but if I use " or ' for the value of the field on the embed, the variable doesn't work therefore I have to use `. The issue with this is, I can't see a way to show the text outputted by the variable as a code block.
My code:
.addFields(
{ name: '__User Information__', value: `**Name:** ${user.tag}\n <:Spacer:1064084066997129277> • Mention: ${user}`, inline:false},
)