MCPcopy Index your code
hub / github.com/praw-dev/praw / comment

Method comment

praw/reddit.py:625–639  ·  view source on GitHub ↗

Return a lazy instance of :class:`.Comment`. :param id: The ID of the comment. :param url: A permalink pointing to the comment. .. note:: If you want to obtain the comment's replies, you will need to call :meth:`~.Comment.refresh` on the returned :c

(self, id: str | None = None, *, url: str | None = None)

Source from the content-addressed store, hash-verified

623 return url
624
625 def comment(self, id: str | None = None, *, url: str | None = None) -> models.Comment:
626 """Return a lazy instance of :class:`.Comment`.
627
628 :param id: The ID of the comment.
629 :param url: A permalink pointing to the comment.
630
631 .. note::
632
633 If you want to obtain the comment's replies, you will need to call
634 :meth:`~.Comment.refresh` on the returned :class:`.Comment`.
635
636 """
637 if url:
638 url = self._resolve_share_url(url)
639 return models.Comment(self, id=id, url=url)
640
641 def delete(
642 self,

Calls 1

_resolve_share_urlMethod · 0.95