SubredditMessage

class praw.models.SubredditMessage(reddit, _data)

A class for messages to a subreddit.

__init__(reddit, _data)

Construct an instance of the Message object.

block()

Block the user who sent the item.

Note

Reddit does not permit blocking users unless you have a Comment or Message from them.

fullname

Return the object’s fullname.

A fullname is an object’s kind mapping like t3 followed by an underscore and the object’s base36 ID, e.g., t1_c5s96e0.

mark_read()

Mark the item as read.

mark_unread()

Mark the item as unread.

mute(_unmute=False)

Mute the sender of this SubredditMessage.

parse(data, reddit)

Return an instance of Message or SubredditMessage from data.

Parameters:
  • data – The structured data.
  • reddit – An instance of Reddit.
reply(body)

Reply to the object.

Parameters:body – The markdown formatted content for a comment.
Returns:A Comment object for the newly created comment.
unmute()

Unmute the sender of this SubredditMessage.