Skip to content

Commit 908624e

Browse files
committed
Fix announcements missing permissions
1 parent 7dc5496 commit 908624e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

modals/announcement.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ module.exports = {
3535
// Send the announcement
3636
client.lol.lol_rank_manager.trackers.forEach(ch => {
3737
client.channels.fetch(ch.channel).then(chs => {
38-
chs.send({ embeds: [embed] });
38+
chs.send({ embeds: [embed] }).catch(err => {
39+
console.error("Error sending announcement to channel " + ch.channel + ": " + err);
40+
});
41+
}).catch(err => {
42+
console.error("Error fetching channel " + ch.channel + ": " + err);
3943
});
4044
});
4145

0 commit comments

Comments
 (0)