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}`;
if (x.voiceActors && x.voiceActors.length > 0)
informationString += ` voice by ${x.voiceActors.map(y => {
`[${getNameString(y.name)}](${y.siteUrl})`;
return `[${getNameString(y.name)}](${y.siteUrl})`;
}).join(', ')}`;
return informationString;
}).join('\n')

Loading…
Cancel
Save