Markdown in embeds broken?

Heyo! when trying to add hyperlinks in my embeds it looks quite weird, see the image attached
response.data.data.event.placements.forEach(placement => {
let region = placement.leagueProfile.region;
if (/\d$/.test(region)) {
region = region.slice(0, -1);
}

embed.addFields({
name: `[${placement.leagueProfile.summonerName}](https://blitz.gg/lol/profile/${region}/${placement.leagueProfile.summonerName}) - ${region}`,
value: `Placement: ${placement.placement}\nScore: ${placement.score}`,
inline: false,
});
});
response.data.data.event.placements.forEach(placement => {
let region = placement.leagueProfile.region;
if (/\d$/.test(region)) {
region = region.slice(0, -1);
}

embed.addFields({
name: `[${placement.leagueProfile.summonerName}](https://blitz.gg/lol/profile/${region}/${placement.leagueProfile.summonerName}) - ${region}`,
value: `Placement: ${placement.placement}\nScore: ${placement.score}`,
inline: false,
});
});
6 Replies
d.js toolkit
d.js toolkitā€¢17mo ago
ā€¢ 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.
mert
mertā€¢17mo ago
add [Link](Link here) but literally add the word "[Link]" [${placement.leagueProfile.summonerName}]Link
Kubi
Kubiā€¢17mo ago
i have
name: `[${placement.leagueProfile.summonerName}](https://blitz.gg/lol/profile/${region}/${placement.leagueProfile.summonerName}) - ${region}`,
name: `[${placement.leagueProfile.summonerName}](https://blitz.gg/lol/profile/${region}/${placement.leagueProfile.summonerName}) - ${region}`,
which is basically [Summonername](https....) - region
Kubi
Kubiā€¢17mo ago
issue resolved, it's related to it being in the Name of a field, which is not allowed it seems.
Syjalo
Syjaloā€¢17mo ago
Formatting works only in description and field values
mert
mertā€¢17mo ago
yeah forgot
Want results from more Discord servers?
Add your server