Skip to content

Commit

Permalink
Deprecate moderator_subreddits
Browse files Browse the repository at this point in the history
  • Loading branch information
bboe committed Dec 2, 2019
1 parent 8170ced commit d9b0bac
Show file tree
Hide file tree
Showing 2 changed files with 12 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
4 changes: 3 additions & 1 deletion praw/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ 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.
"""(DEPRECATD) Return a ListingGenerator of subreddits the user is a moderator of.
..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 d9b0bac

Please sign in to comment.