Skip to content

Commit f243226

Browse files
authored
Merge pull request praw-dev#2065 from alythobani/1/docs-for-comment-and-submission-likes-attribute
2 parents 956368d + 9bc15bd commit f243226

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

praw/models/reddit/comment.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ class Comment(InboxableMixin, UserContentMixin, FullnameMixin, RedditBase):
3333
``id`` The ID of the comment.
3434
``is_submitter`` Whether or not the comment author is also the author of the
3535
submission.
36+
``likes`` The user's current vote status on the comment: ``True`` if
37+
upvoted, ``False`` if downvoted, and ``None`` if not voted or not
38+
logged in.
3639
``link_id`` The submission ID that the comment belongs to.
3740
``parent_id`` The ID of the parent comment (prefixed with ``t1_``). If it is a
3841
top-level comment, this returns the submission ID instead

praw/models/reddit/submission.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,9 @@ class Submission(SubmissionListingMixin, UserContentMixin, FullnameMixin, Reddit
414414
``is_original_content`` Whether or not the submission has been set as original
415415
content.
416416
``is_self`` Whether or not the submission is a selfpost (text-only).
417+
``likes`` The user's current vote status on the submission:
418+
``True`` if upvoted, ``False`` if downvoted, and ``None``
419+
if not voted or not logged in.
417420
``link_flair_template_id`` The link flair's ID.
418421
``link_flair_text`` The link flair's text content, or ``None`` if not
419422
flaired.

0 commit comments

Comments
 (0)