Fixed bug in AniList commands

- fixed character information voiced by not showing any names
pull/51/head
Trivernis 6 years ago
parent 16a7d62ff5
commit 7d04e53e02

@ -152,7 +152,7 @@ class RichCharacterInfo extends cmdLib.ExtendedRichEmbed {
let informationString = `**[${media.title.romaji}](${media.siteUrl})**: ${x.characterRole}`; let informationString = `**[${media.title.romaji}](${media.siteUrl})**: ${x.characterRole}`;
if (x.voiceActors && x.voiceActors.length > 0) if (x.voiceActors && x.voiceActors.length > 0)
informationString += ` voice by ${x.voiceActors.map(y => { informationString += ` voice by ${x.voiceActors.map(y => {
`[${getNameString(y.name)}](${y.siteUrl})`; return `[${getNameString(y.name)}](${y.siteUrl})`;
}).join(', ')}`; }).join(', ')}`;
return informationString; return informationString;
}).join('\n') }).join('\n')

Loading…
Cancel
Save