What can cause FetchedThreads.hasMore to be true?
Does GuildChannelManager.fetchActiveThreads have a limit or will it always fetch all threads? FetchedThreads.hasMore exists and I'm wondering what types of situations would call for multiple fetches, if any
8 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
No error, preemptive question. Hypothetical code:
What kinds of situations could cause this to be
true
?Discord API docs dont say if there's a default limit or not, but usually these endpoints return a max of 100 entries
The docs just say
whether there are potentially additional threads that could be returned on a subsequent callSo yeah Discord is pretty vague too
Alright. It doesn't have a before or after either... so if hasMore is true are we just out of luck for getting the full list without checking every channel?
Returns all active threads in the guild, including public and private threads. Threads are ordered by their id, in descending order.https://discord.com/developers/docs/resources/guild#list-active-guild-threads
It has a before
Where is that? I'm looking at
https://discord.js.org/#/docs/discord.js/main/class/GuildChannelManager?scrollTo=fetchActiveThreads for djs and
https://discord.com/developers/docs/resources/guild#list-active-guild-threads for the API docs
Hmm, why dont we have that
Oh, for active threads
I was looking at fetch archived
Yeah maybe should have added that to the title. Only care about active in this case
Cool thanks. So it has the property for fetches that can include archived threads, which can be paginated. That makes sense