No native name on enlgish native characters. Name is only on the first property.

master
masterhc 1 year ago
parent dfb479cde0
commit d5d83c92b0

@ -25,7 +25,7 @@ class char extends Command{
var embeds = [];
for(var i = 0; i<data.length; i++)
{
fieldPayload.push({name:data[i].name.full+' ['+data[i].name.native+']', value:i.toString()});
fieldPayload.push({name:data[i].name.full+' '+(data[i].name.native?'['+data[i].name.native+']':''), value:i.toString()});
embeds.push(new EmbedBuilder().setImage(data[i].image).setURL('https://www.rem.wordfights.com'));
row.addComponents(
new ButtonBuilder()
@ -79,6 +79,10 @@ class char extends Command{
{
embed.addFields({name:'Age:',value:data.age, inline:true});
}
if(!data.name.native)
{
embed.setTitle(`${data.name.full}`)
}
const randomID = Random();
const row = new ActionRowBuilder()
.addComponents(

Loading…
Cancel
Save