From d5d83c92b0a87ba8fed73f1092530bda97e60384 Mon Sep 17 00:00:00 2001 From: masterhc Date: Thu, 8 Feb 2024 22:20:59 +0000 Subject: [PATCH] No native name on enlgish native characters. Name is only on the first property. --- commands/search/searchChar.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/commands/search/searchChar.js b/commands/search/searchChar.js index 06fd9fb..44d3690 100644 --- a/commands/search/searchChar.js +++ b/commands/search/searchChar.js @@ -25,7 +25,7 @@ class char extends Command{ var embeds = []; for(var i = 0; i]*>/g, ''); data.description = data.description.length>1500?(data.description.substring(0, 1500) + "..."):data.description; - // console.log(data) + //console.log(data) const embed = new EmbedBuilder() .setTitle(`${data.name.full} (${data.name.native})`) .setAuthor({name:"Rem-chan", iconURL:"https://i.imgur.com/g6FSNhL.png",url:'https://rem.wordfights.com/addtodiscord'}) @@ -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(