reddit.multireddit

class asyncpraw.models.MultiredditHelper(reddit, _data)

Provide a set of functions to interact with multireddits.

Parameters:
await __call__(*, name, redditor, fetch=False)

Return a lazy instance of Multireddit.

If you need the object fetched right away (e.g., to access an attribute) you can do:

multireddit = await reddit.multireddit(redditor="redditor", name="multi", fetch=True)
async for comment in multireddit.comments(limit=25):
    print(comment.author)
Parameters:
  • name (str) – The name of the multireddit.

  • redditor (str | Redditor) – A redditor name or Redditor instance who owns the multireddit.

  • name – The name of the multireddit.

  • fetch (bool) – Determines if Async PRAW will fetch the object (default: False).

Return type:

Multireddit

__init__(reddit, _data)

Initialize a AsyncPRAWBase instance.

Parameters:
Return type:

None

await create(*, description_md=None, display_name, icon_name=None, key_color=None, subreddits, visibility='private', weighting_scheme='classic')

Create a new Multireddit.

Parameters:
  • display_name (str) – The display name for the new multireddit.

  • subreddits (list[str | Subreddit]) – Subreddits to add to the new multireddit. Can be a list of either Subreddit instances or subreddit display names.

  • description_md (str | None) – Description for the new multireddit, formatted in markdown.

  • icon_name (str | None) – Can be one of: "art and design", "ask", "books", "business", "cars", "comics", "cute animals", "diy", "entertainment", "food and drink", "funny", "games", "grooming", "health", "life advice", "military", "models pinup", "music", "news", "philosophy", "pictures and gifs", "science", "shopping", "sports", "style", "tech", "travel", "unusual stories", "video", or None.

  • key_color (str | None) – RGB hex color code of the form "#FFFFFF".

  • visibility (str) – Can be one of: "hidden", "private", or "public" (default: "private").

  • weighting_scheme (str) – Can be one of: "classic" or "fresh" (default: "classic").

Return type:

Multireddit

Returns:

The new Multireddit object.

classmethod parse(data, reddit)

Return an instance of cls from data.

Parameters:
Return type:

AsyncPRAWBase