diff --git a/lib.js b/lib.js index f732d06..abca47b 100644 --- a/lib.js +++ b/lib.js @@ -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'});