|
|
|
@ -59,17 +59,19 @@ class char extends Command{
|
|
|
|
|
async function sendMessage(id)
|
|
|
|
|
{
|
|
|
|
|
const data = await new aniList().getCharInfo(id);
|
|
|
|
|
console.log('Command: SearchChar: SendMessage: Data', 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'})
|
|
|
|
|
.setColor(0x003284)
|
|
|
|
|
.setDescription(data.description)//.split('~! ')[1].replaceAll('<br>', ' ').substring(0, 1500) + "...")
|
|
|
|
|
.setDescription(data.description.split('~! ')[1].replaceAll('<br>', ' ').substring(0, 1500) + "...")
|
|
|
|
|
.setFooter({ text: 'Rem-Chan on', iconURL: 'https://i.imgur.com/g6FSNhL.png' })
|
|
|
|
|
.setImage(data.image)
|
|
|
|
|
.setThumbnail(data.image)
|
|
|
|
|
.setTimestamp()
|
|
|
|
|
.addFields(
|
|
|
|
|
{name:'Gender:', value:data.gender, inline:true});
|
|
|
|
|
{name:'Gender:', value:data.gender, inline:true},
|
|
|
|
|
{name:'Page', value:data.url, inline:true});
|
|
|
|
|
const randomID = Random();
|
|
|
|
|
const row = new ActionRowBuilder()
|
|
|
|
|
.addComponents(
|
|
|
|
|