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

Method notes

praw/models/reddit/redditor.py:78–99  ·  view source on GitHub ↗

Provide an instance of :class:`.RedditorModNotes`. This provides an interface for managing moderator notes for a redditor. .. note:: The authenticated user must be a moderator of the provided subreddit(s). For example, all the notes for u/spez in r/test can be

(self)

Source from the content-addressed store, hash-verified

76
77 @cachedproperty
78 def notes(self) -> models.RedditorModNotes:
79 """Provide an instance of :class:`.RedditorModNotes`.
80
81 This provides an interface for managing moderator notes for a redditor.
82
83 .. note::
84
85 The authenticated user must be a moderator of the provided subreddit(s).
86
87 For example, all the notes for u/spez in r/test can be iterated through like so:
88
89 .. code-block:: python
90
91 redditor = reddit.redditor("spez")
92
93 for note in redditor.notes.subreddits("test"):
94 print(f"{note.label}: {note.note}")
95
96 """
97 from praw.models.mod_notes import RedditorModNotes # noqa: PLC0415
98
99 return RedditorModNotes(self._reddit, self)
100
101 @cachedproperty
102 def stream(self) -> RedditorStream:

Calls 1

RedditorModNotesClass · 0.90