Various fixes I forgot to push

This commit is contained in:
MathMan05 2024-06-22 11:53:06 -05:00
parent 95f6bc202d
commit f64c5f02f2
6 changed files with 21 additions and 17 deletions

View file

@ -514,8 +514,10 @@ class channel{
} else if (Notification.permission === "granted") {
let noticontent=markdown(message.content).textContent;
noticontent||=message.embeds[0].json.title;
noticontent||=markdown(message.embeds[0].json.description).textContent;
if(message.embeds[0]){
noticontent||=message.embeds[0].json.title;
noticontent||=markdown(message.embeds[0].json.description).textContent;
}
noticontent||="Blank Message";
let imgurl=null;
const images=message.getimages();