We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3eb3e4 commit 409dd1eCopy full SHA for 409dd1e
cron/thread-lifecycle.js
@@ -53,7 +53,7 @@ module.exports = {
53
const archiveThreshold = weekdaysBefore(moment(), 4)
54
55
channels
56
- .filter((channel) => channel.isText() && channel.viewable)
+ .filter((channel) => channel && channel.isText() && channel.viewable)
57
.forEach(async (channel) => {
58
const threads = await channel.threads.fetch()
59
threads.threads.forEach(async (thread) => {
0 commit comments