You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Get Active Threads methods cannot get all threads from specific Forum Channel. It gets some threads from the channel.
Expected Behavior:
Can get all active threads from guild and get all archived threads from channel.
Actual Behavior:
I have a Forum Channel which has more than 400 Threads and most of them are active. It is highly crowded server and there are too many messages threads etc.
When I try to use get_guild_active_threads and get_channel_archived_public_threads(or other related methods guild_id.get_active_threads or channel_id.get_archived_public_threads etc.) like this:
dotenv().ok();// Configure the client with your Discord bot token in the environment.let token = env::var("DISCORD_TOKEN").expect("Expected a token in the environment");// ACTIVE THREAD let forum_channel_id = ChannelId(FORUM_CHANNEL_ID);let guild_id = GuildId(GUILD_ID);let http = Http::new(&token);letmut active_threads = http.get_guild_active_threads(GUILD_ID).await.unwrap();println!("New active threads: {:?}", active_threads.threads.len());letmut archived_public_threads = http.get_channel_archived_public_threads(FORUM_CHANNEL_ID,None,None).await.unwrap();println!("Archived threads: {:?}", archived_public_threads.threads.len());
I get:
New active threads: 124
Archived threads: 50
But I do know that Forum Channel has more that 400 Threads. Even if I filter Guild active threads for the Forum Channel, I get around 60 threads.
So, if the issue is Rate limit is there any method that I can use while paginating? Or am I missing something? Or any idea what is the problem?
Thank you!
The text was updated successfully, but these errors were encountered:
The issue is the limit on the archived threads, it defaults to 50. Up it to 100, and you'll see 100. You need to read all of them, which is impossible with the current API (it handles before incorrectly, #3014 covers this issue.
Description:
Get Active Threads methods cannot get all threads from specific Forum Channel. It gets some threads from the channel.
Expected Behavior:
Can get all active threads from guild and get all archived threads from channel.
Actual Behavior:
I have a Forum Channel which has more than 400 Threads and most of them are active. It is highly crowded server and there are too many messages threads etc.
When I try to use
get_guild_active_threads
andget_channel_archived_public_threads
(or other related methodsguild_id.get_active_threads or channel_id.get_archived_public_threads
etc.) like this:I get:
But I do know that Forum Channel has more that 400 Threads. Even if I filter Guild active threads for the Forum Channel, I get around 60 threads.
So, if the issue is Rate limit is there any method that I can use while paginating? Or am I missing something? Or any idea what is the problem?
Thank you!
The text was updated successfully, but these errors were encountered: