Error Handling - YTFeed no author on rss

master
Cristiano Pires 1 year ago
parent 49e01e6b74
commit 76395664fd

@ -263,7 +263,8 @@ class _Client extends Client
}
function sendMessage(res, feed, channel)
{
console.log('Lib: YTFeed: SendMessage: Res', res.author.name)
if(!res?.author?.name) return
console.log('Lib: YTFeed: SendMessage: Res: Author: Name:', res?.author?.name)
const embed = new EmbedBuilder()
embed.setFooter({text:'Rem-chan on ', iconURL:"https://i.imgur.com/g6FSNhL.png"})
embed.setAuthor({name:"Rem-chan", iconURL:"https://i.imgur.com/g6FSNhL.png",url:'https://rem.wordfights.com/addtodiscord'});

Loading…
Cancel
Save