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
The fact that subreddit returns a SubredditReference but subreddits returns a posts iterator seems confusing. Is there a way for me to get comments for multiple subreddits?
As a temporary solution I borrowed the code from RedditClient, and did this: reddit.subreddit(arrayOf("btc", "bitcoin").joinToString("+")).comments().build(); which works fine, but seems like I'm working against the library.
The text was updated successfully, but these errors were encountered:
You're right, that is pretty confusing. I'm going to take .posts() off of the body of subreddits so that it returns a SubredditReference instead of jumping right to the posts:
Hello!
I'm using jraw version 1.0.0
I'm trying to get comments from multiple subreddits. When getting comments for one, I do this:
But when trying to do the same thing for multiple subscriptions I face this:
I found the reason in the source code in RedditClient.kt on line 301:
The fact that subreddit returns a SubredditReference but subreddits returns a posts iterator seems confusing. Is there a way for me to get comments for multiple subreddits?
As a temporary solution I borrowed the code from RedditClient, and did this:
reddit.subreddit(arrayOf("btc", "bitcoin").joinToString("+")).comments().build();
which works fine, but seems like I'm working against the library.The text was updated successfully, but these errors were encountered: