From 8b44b8fb0d200f91565a141eb24d990fcd78bba1 Mon Sep 17 00:00:00 2001 From: LilSpazJoekp <15524072+LilSpazJoekp@users.noreply.github.com> Date: Fri, 12 Mar 2021 00:33:46 -0600 Subject: [PATCH] Add join_requests to docs --- praw/models/reddit/subreddit.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/praw/models/reddit/subreddit.py b/praw/models/reddit/subreddit.py index 79cdaed14..93b910024 100644 --- a/praw/models/reddit/subreddit.py +++ b/praw/models/reddit/subreddit.py @@ -2563,9 +2563,9 @@ def modmail_conversations( fetch conversations (default: None). :param sort: Can be one of: mod, recent, unread, user (default: recent). :param state: Can be one of: all, appeals, archived, default, highlighted, - inbox, inprogress, mod, new, notifications (default: all). "all" does not - include mod or archived conversations. "inbox" does not include appeals - conversations. + inbox, inprogress, join_requests, mod, new, notifications (default: all). + "all" does not include mod or archived conversations. "inbox" does not + include appeals conversations. Keyword arguments are passed to :func:`.stream_generator`. @@ -3162,9 +3162,9 @@ def bulk_read( :param other_subreddits: A list of :class:`.Subreddit` instances for which to mark conversations (default: None). - :param state: Can be one of: all, archived, highlighted, inprogress, mod, new, - notifications, or appeals, (default: all). "all" does not include internal, - archived, or appeals conversations. + :param state: Can be one of: all, archived, highlighted, inprogress, + join_requests, mod, new, notifications, or appeals, (default: all). "all" + does not include internal, archived, or appeals conversations. :returns: A list of :class:`.ModmailConversation` instances that were marked read. @@ -3204,9 +3204,9 @@ def conversations( :param other_subreddits: A list of :class:`.Subreddit` instances for which to fetch conversations (default: None). :param sort: Can be one of: mod, recent, unread, user (default: recent). - :param state: Can be one of: all, archived, highlighted, inprogress, mod, new, - notifications, or appeals, (default: all). "all" does not include internal, - archived, or appeals conversations. + :param state: Can be one of: all, archived, highlighted, inprogress, + join_requests, mod, new, notifications, or appeals, (default: all). "all" + does not include internal, archived, or appeals conversations. For example: @@ -3294,8 +3294,8 @@ def subreddits(self) -> Generator["praw.models.Subreddit", None, None]: def unread_count(self) -> Dict[str, int]: """Return unread conversation count by conversation state. - At time of writing, possible states are: archived, highlighted, inprogress, mod, - new, notifications, or appeals. + At time of writing, possible states are: archived, highlighted, inprogress, + join_requests, mod, new, notifications, or appeals. :returns: A dict mapping conversation states to unread counts.