ModNoteMixin

class asyncpraw.models.reddit.mixins.ModNoteMixin

Interface for classes that can have a moderator note set on them.

author_notes(**generator_kwargs) AsyncGenerator[asyncpraw.models.ModNote, None]

Get the moderator notes for the author of this object in the subreddit it’s posted in.

Parameters

generator_kwargs – Additional keyword arguments are passed in the initialization of the moderator note generator.

Returns

A generator of ModNote.

For example, to list all notes the author of a submission, try:

for note in reddit.submission("92dd8").mod.author_notes():
    print(f"{note.label}: {note.note}")
await create_note(*, label: Optional[str] = None, note: str, **other_settings) asyncpraw.models.ModNote

Create a moderator note on the author of this object in the subreddit it’s posted in.

Parameters
  • label – The label for the note. As of this writing, this can be one of the following: "ABUSE_WARNING", "BAN", "BOT_BAN", "HELPFUL_USER", "PERMA_BAN", "SOLID_CONTRIBUTOR", "SPAM_WARNING", "SPAM_WATCH", or None (default: None).

  • note – The content of the note. As of this writing, this is limited to 250 characters.

  • other_settings – Additional keyword arguments are passed to create().

Returns

The new ModNote object.

For example, to create a note on a Submission, try:

submission = await reddit.submission("92dd8")
await submission.mod.create_note(label="HELPFUL_USER", note="Test note")