Skip to content

Commit

Permalink
Merge pull request #1148 from praw-dev/deprecate
Browse files Browse the repository at this point in the history
Deprecate moderator_subreddits
  • Loading branch information
bboe committed Dec 2, 2019
2 parents 8170ced + 18d1769 commit 8c700c6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
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

0 comments on commit 8c700c6

Please sign in to comment.