threads.fetchArchived({fetchAll: true}) is misleading

Looking at the source code for fetch archived, it only makes one call to the Discord API even if fetch all is set to true https://github.com/discordjs/discord.js/blob/51edba78bc4d4cb44b4dd2b79e4bbc515dc46f5b/packages/discord.js/src/managers/ThreadManager.js#L142 From the Discord docs though, this endpoint returns an "isMore" making me think that's possible for their to be more data available, thus leading to fetchAll being misleading as you're expecting to get all of the archived threads in the channel, but really you only receive a subset of them https://discord.com/developers/docs/resources/channel#list-public-archived-threads Currently investigating an issue with my bot where I'm not collecting all archived threads and I think this may be the cause, is my logic correct on this?
2 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Rhys
RhysOP2y ago
Discord JS version: [email protected] Node Version: v16.8.0 Relevant source code: https://github.com/AnswerOverflow/AnswerOverflow/blob/main/apps/discord-bot/src/domains/indexing.ts Verified via my logs and updating that function to check if has more returns true that is the case, I feel like that parameter is really misleading
Want results from more Discord servers?
Add your server