Format Embed Description

I'm having trouble formatting an embed leaderboard with the embed builder.

I have the following for my embed description, which is part of a loop that goes through a sorted array. It works, but for the bold user, the colon onwards is on a new line.

if (topTenUsers[i].id == interaction.user.id){
    description += `**${i+1}. ${member.displayName}**: ${formattedData} [(i)](${interaction.channel.url} "${lbData}")\n`
} else {
    description += `${i+1}. ${member.displayName}: ${formattedData} [(i)](${interaction.channel.url} "${lbData}")\n`
}


I've attached a couple of examples of the output, one of which shows that even when the embed is wide enough to fit the whole line, it still splits it.

Have I missed something obvious? Thanks šŸ™‚
Screenshot_2024-01-03_at_17.20.08.png
Screenshot_2024-01-03_at_17.21.45.png
Was this page helpful?