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?
Was this page helpful?