Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate moderator_subreddits #1148

Merged
merged 1 commit into from
Dec 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,16 @@ Unreleased
:class:`.Redditor` constructor now also has ``fullname`` param.
* Add :class:`.RemovalReason` and :class:`.SubredditRemovalReasons` to work
with removal reasons
* Attribute ``removal_reasons`` to :class:`.SubredditModeration` to interact
* Attribute ``removal_reasons`` to :class:`.SubredditModeration` to interact
with new removal reason classes
* Parameters ``mod_note`` and ``reason_id`` to
:meth:`.ThingModerationMixin.remove` to optionally apply a removal reason
on removal
* Parameters ``mod_note`` and ``reason_id`` to
:meth:`.ThingModerationMixin.remove` to optionally apply a removal reason on
removal

**Deprecated**

* :meth:`.moderator_subreddits` as :meth:`.Redditor.moderated` provides more
functionality.

6.4.0 (2019/09/21)
------------------
Expand Down
6 changes: 5 additions & 1 deletion praw/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ def me(self, use_cache=True): # pylint: disable=invalid-name
return self._me

def moderator_subreddits(self, **generator_kwargs):
"""Return a ListingGenerator of subreddits the user is a moderator of.
"""(DEPRECATED) Return a ListingGenerator of subreddits the user moderates.
..warning:: (Deprecated) This method will be removed in the next major
version of PRAW. Please use :meth:`.Redditor.moderated`
instead.
Additional keyword arguments are passed in the initialization of
:class:`.ListingGenerator`.
Expand Down