Fix error handling when sending message to channel

This commit is contained in:
Christopher Cookman 2024-05-08 07:48:59 -06:00
parent f4fa286766
commit d236181231
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -209,7 +209,9 @@ xmpp.on("stanza", (stanza) => {
} }
).then((msg) => { ).then((msg) => {
if (msg.channel.type === Discord.ChannelType.GuildAnnouncement) msg.crosspost(); if (msg.channel.type === Discord.ChannelType.GuildAnnouncement) msg.crosspost();
}) }).catch((err) => {
console.log(`Failed to send message to ${row.channelid}, ${err}`);
});
}); });
}); });
} }