We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dc5496 commit 908624eCopy full SHA for 908624e
1 file changed
modals/announcement.js
@@ -35,7 +35,11 @@ module.exports = {
35
// Send the announcement
36
client.lol.lol_rank_manager.trackers.forEach(ch => {
37
client.channels.fetch(ch.channel).then(chs => {
38
- chs.send({ embeds: [embed] });
+ 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);
43
});
44
45
0 commit comments