PRAW v4.2.0 Release Notes

Release Date: 2017-01-07 // almost 5 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 through contributor not contributors.
    • Subreddit.moderator() works.
    • live_thread.contributor() now returns :class:.RedditorList correctly.

    โœ‚ Removed

    • validate_time_filter is no longer part of the public interface.