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 toolkit2y 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
mert2y ago
add [Link](Link here) but literally add the word "[Link]" [${placement.leagueProfile.summonerName}]Link
Kubi
KubiOP2y 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
KubiOP2y ago
issue resolved, it's related to it being in the Name of a field, which is not allowed it seems.
Syjalo
Syjalo2y ago
Formatting works only in description and field values
mert
mert2y ago
yeah forgot
Want results from more Discord servers?
Add your server