Why won’t this work

const playerListArranged = bot.fiveMPlayerList.map(r => {
let name = ‘’;
if (r.identifiers.some(a=>a.includes(‘discord’)) && leaderboardChannel.guild.members.cache.get(r.identifiers.find(a => a.includes(‘discord’)).split(’:’)[1])){
name = leaderboardChannel.guild.members.cache.get(r.identifiers.find(a => a.includes(‘discord’)).split(’:’)[1]);
} else {
name = r.name;
}
return ${r.id.toString().padEnd(10, " ")} ${name.toString().padEnd(45, " ")} ${r.ping}ms;
});
console.log(playerListArranged)

Hello, we are going to need some of your error logs to help.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.