#TypeError: thread.members._add is not a
1 messages · Page 1 of 1 (latest)
what version you on
I'm getting it only on launch
version?
Please let me explain before sending questions
please put ur version below so i can help
No help needed

bye
Let me deal with this, kthx
bye

its due to the version 
What a champ
lmfao that made me laugh, sorry I'll be lurking 
This is super strange, and looking at the logs, makes no sense, threads always have a members manager
Do you change caches at all?
We have quite a lot of shards (30) and while launching we got this error, not always but strangely we got the error this time togetherwith the reduce error. I reverted the djs version and the issue was gone
I will send you the full launch log
the reduce errors are unrelated to the thread stacktrace, different issues
As you see all our clusters weren't booting and crashing, some with the reduce error, others with the thread.members
how tf would we have a thread cached but members non existent, HUH
Its a public bot, so really difficult to trace when and where this issue happened
Can you maybe inject some code to log the thread ?
I can't, I have no idea on which server or guild this happened
typeof thread.members._add !== 'function' && console.log(`Unexpected broken thread in guild ${thread.guild.id} (${thread.id}, ${thread.name})`, thread, thread.members);
can you add that before that reduce line?
In the discord.js code?
yap, innn
/home/container/node_modules/discord.js/src/client/actions/ThreadMembersUpdate.js
you can use patch-package/yarn patch/pnpm patch
I will do that for you, but it is possible that we have no result for a couple of hours or maybe days
thats fine, but in the event you do get this again, feel free to poke me
@spiral vapor do you have any custom client options btw? Specifically any that touch caches?
makeCache: Options.cacheWithLimits({
...Options.DefaultMakeCacheSettings,
AutoModerationRuleManager: 0,
ApplicationCommandManager: 0,
DMMessageManager: 0,
GuildBanManager: 0,
GuildForumThreadManager: 0,
GuildInviteManager: 0,
GuildMemberManager: {
keepOverLimit: member => member.id === member.client.user.id,
maxSize: 50
},
GuildScheduledEventManager: 0,
GuildStickerManager: 0,
PresenceManager: 0,
ReactionManager: 0,
ReactionUserManager: 0,
StageInstanceManager: 0,
VoiceStateManager: 0,
MessageManager: 0
})
partials: [Partials.Message, Partials.Channel, Partials.User, Partials.GuildMember],
failIfNotExists: false,
These client options we got related to cache i think
And some sweepers
@ruby bough
ok so not what i was thinking off
strangeee
best bet is to add that console log and see if it comes up
I got this as well today on boot up, using 14.15.3
do you get this consistently?