ModmailMessage

class asyncpraw.models.ModmailMessage(reddit: asyncpraw.Reddit, _data: Dict[str, Any] | None, _extra_attribute_to_check: str | None = None, _fetched: bool = False, _str_field: bool = True)

A class for modmail messages.

__init__(reddit: asyncpraw.Reddit, _data: Dict[str, Any] | None, _extra_attribute_to_check: str | None = None, _fetched: bool = False, _str_field: bool = True)

Initialize a RedditBase instance.

Parameters:

reddit – An instance of Reddit.

await load()

Re-fetches the object.

This is used to explicitly fetch or re-fetch the object from reddit. This method can be used on any RedditBase object.

await reddit_base_object.load()
classmethod parse(data: Dict[str, Any], reddit: asyncpraw.Reddit) Any

Return an instance of cls from data.

Parameters:
  • data – The structured data.

  • reddit – An instance of Reddit.