CommentHelper

class asyncpraw.models.listing.mixins.subreddit.CommentHelper(subreddit)

Provide a set of functions to interact with a Subreddit’s comments.

Parameters:

subreddit (asyncpraw.models.Subreddit | SubredditListingMixin)

__call__(**generator_kwargs)

Return a ListingGenerator for the Subreddit’s comments.

Additional keyword arguments are passed in the initialization of ListingGenerator.

This method should be used in a way similar to the example below:

subreddit = await reddit.subreddit("test")
async for comment in subreddit.comments(limit=25):
    print(comment.author)
Return type:

AsyncIterator[Comment]

Parameters:

generator_kwargs (Unpack[ListingGeneratorKwargs])

__init__(subreddit)

Initialize a CommentHelper instance.

Parameters:

subreddit (Subreddit | SubredditListingMixin)

Return type:

None

classmethod parse(data, reddit)

Return an instance of cls from data.

Parameters:
Return type:

AsyncPRAWBase