This section describes the usage and members of the
comments = await more_comments.comments() # or using asynchronous list comprehension: comments = [c async for c in more_comments]
- class apraw.models.MoreComments(reddit: Reddit, data: Dict[str, Any], link_id: str)¶
Represents the model for more comments in a thread.
This table describes attributes that typically belong to objects of this class. Attributes are dynamically provided by the
aPRAWBaseclass and may vary depending on the status of the response and expected objects.
The number of comment or more children items in this thread.
The fullname that references this more comments model.
The ID of this more comments model.
The ID of this more comments’ parent submission or comment.
The depth this more comments model goes into.
A list of comment and more comment IDs available in this thread.
- async comments() List[Union[apraw.models.reddit.comment.Comment, apraw.models.reddit.more_comments.MoreComments]] ¶
Retrieve a list of all the
MoreCommentsin this thread.
- async fetch()¶
Fetch all the comments in this MoreComments thread.
- property fullname¶
Get the ID prepended with its kind.
fullname – The item’s ID prepended with its kind such as t1_.
- Return type
Retrieve the submission this item belongs to as a
submission – The item’s parent submission.
- Return type
- async parent() Union[apraw.models.reddit.submission.Submission, apraw.models.reddit.comment.Comment] ¶
Retrieve the parent submission or comment of this MoreComments object.