Remove html tags from descritpion

master
Cristiano Pires 2 years ago
parent 13da9bf960
commit be9751309f

@ -77,7 +77,7 @@ class anime extends Command{
.setTitle(`${data.title.romaji} (${data.title.native} / ${data.title.english})`) .setTitle(`${data.title.romaji} (${data.title.native} / ${data.title.english})`)
.setAuthor({name:"Rem-chan", iconURL:"https://i.imgur.com/g6FSNhL.png",url:'https://rem.wordfights.com/addtodiscord'}) .setAuthor({name:"Rem-chan", iconURL:"https://i.imgur.com/g6FSNhL.png",url:'https://rem.wordfights.com/addtodiscord'})
.setColor(0x003284) .setColor(0x003284)
.setDescription(data.description.replaceAll('<br>',' ')) .setDescription(data.description.replaceAll('<br>','').replaceAll('<i>','').replaceAll('</i>', ''))
.setFooter({ text: 'Rem-Chan on', iconURL: 'https://i.imgur.com/g6FSNhL.png' }) .setFooter({ text: 'Rem-Chan on', iconURL: 'https://i.imgur.com/g6FSNhL.png' })
.setImage(data.coverImage) .setImage(data.coverImage)
.setThumbnail(data.coverImage) .setThumbnail(data.coverImage)

Loading…
Cancel
Save