Sorry for the late response. I've been able to use Array.some(), but now I've ran into a different issue.
channel.threads.fetch().then((collection: any) => {
console.log(collection)
if (client.user?.id !== '...') return
const name = collection.threads.some((array: any) => {
return array.name === '🛑 Error Log'
})
const user = collection.threads.some((array: any) => {
return array.ownerId === '...'
})
if (name === false || (name === true && user === false)) {
channel.threads.create({
name: '🛑 Error Log',
message: {
content:
'##  This channel is used to inform devs of errors with @grand spoke\n\n- Follow this channel to receive alerts',
},
})
}
})
Now if if (name === false || (name === true && user === false)) { returns false, I would like to receive the array that makes.some() return true, if that makes sense
Is there a method that does that or would it be a completely different property?