Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
reddit: Reddit
The :class:`~apraw.Reddit` instance with which requests are made.
data: Dict
The data obtained from the /about endpoint.
full_data: Dict
The full_data retrieved by the /r/{sub}/comments/{id} endpoint.
subreddit: Subreddit
The subreddit this submission was posted on.
author: Redditor
The author of this submission as a :class:`~apraw.models.Redditor`.
"""
self.comments = list()
aPRAWBase.__init__(self, reddit, data, reddit.link_kind)
AuthorMixin.__init__(self, author)
SubredditMixin.__init__(self, subreddit)
self.mod = SubmissionModeration(reddit, self)
def __init__(self, reddit: 'Reddit', data: Dict[str, Any]):
super().__init__(reddit, data, reddit.message_kind)
AuthorMixin.__init__(self)
SubredditMixin.__init__(self)
The data obtained from the /about endpoint.
submission: Submission
The submission this comment was made in as a :class:`~apraw.models.Submission`.
author: Redditor
The author of this comment as a :class:`~apraw.models.Redditor`.
subreddit: Subreddit
The subreddit this comment was made in as a :class:`~apraw.models.Subreddit`.
replies: List[Comment]
A list of replies made to this comment.
"""
self.replies = replies if replies else []
ReactiveOwner.__init__(self)
aPRAWBase.__init__(self, reddit, data, reddit.comment_kind)
AuthorMixin.__init__(self, author)
SubredditMixin.__init__(self, subreddit)
self._submission = submission
self.mod = CommentModeration(reddit, self)