- class praw.models.ModNote(reddit: praw.Reddit, _data: dict[str, Any] | None)#
Represent a moderator note.
This table describes attributes that typically belong to objects of this class. PRAW dynamically provides the attributes that Reddit returns via the API. Since those attributes are subject to change on Reddit’s end, PRAW makes no effort to document any new/removed/changed attributes, other than to instruct you on how to discover what is available. As a result, this table of attributes may not be complete. See Determine Available Attributes of an Object for detailed information.
If you would like to add an attribute to this table, feel free to open a pull request.
If this note represents a moderator action, this field indicates the type of action. For example,
"banuser"if the action was banning a user.
Time the moderator note was created, represented in Unix Time.
If this note represents a moderator action, this field indicates the description of the action. For example, if the action was banning the user, this is the ban reason.
If this note represents a moderator action, this field indicates the details of the action. For example, if the action was banning the user, this is the duration of the ban.
The ID of the moderator note.
The label applied to the note, currently one of:
The moderator who created the note.
The text of the note.
The fullname of the object this note is attributed to, or
Noneif not set. If this note represents a moderators action, this is the fullname of the object the action was performed on.
The subreddit this note belongs to.
The type of note, currently one of:
The redditor the note is for.
- __init__(reddit: praw.Reddit, _data: dict[str, Any] | None)#
reddit – An instance of
Delete this note.
For example, to delete the last note for u/spez from r/test, try:
for note in reddit.subreddit("test").mod.notes("spez"): note.delete()