PRAW v4.2.0 Release Notes
Release Date: 2017-01-07 // over 7 years ago-
โ Added
- :meth:
.Subreddit.rules
to get the rules of a subreddit. - :class:
.LiveContributorRelationship
, which can be obtained through :attr:.LiveThread.contributor
, to interact with live threads' contributors. - ๐ :meth:
~.ModeratorRelationship.remove_invite
to remove a moderator invite. - :meth:
.LiveContributorRelationship.invite
to send a contributor invitation. - ๐ :meth:
.LiveContributorRelationship.remove_invite
to remove the contributor invitation.
๐ Deprecated
- Return values from :meth:
.Comment.block
, :meth:.Message.block
, :meth:.SubredditMessage.block
, :meth:.SubredditFlair.delete
, :meth:.friend
, :meth:.Redditor.message
, :meth:.Subreddit.message
, :meth:.select
, and :meth:.unfriend
will be removed in PRAW 5 as they do not provide any useful information.
๐ Fixed
- :meth:
.hide()
and :meth:.unhide()
now accept a list of additional submissions. - ๐ป :meth:
.replace_more
is now recoverable. Previously, when an exception was raised during the work done by :meth:.replace_more
, all unreplaced :class:.MoreComments
instances were lost. Now :class:.MoreComments
instances are only removed once their children have been added to the :class:.CommentForest
enabling callers of :meth:.replace_more
to call the method as many times as required to complete the replacement. - Working with contributors on :class:
.SubredditWiki
is done consistently throughcontributor
notcontributors
. Subreddit.moderator()
works.live_thread.contributor()
now returns :class:.RedditorList
correctly.
โ Removed
validate_time_filter
is no longer part of the public interface.
- :meth: