PRAW v7.4.0 Release Notes

Release Date: 2021-07-30 // 3 months ago
  • โž• Added

    • :meth:~.WikiPage.discussions to obtain site-wide link submissions that link to the WikiPage.
    • โช :meth:.revert to revert a WikiPage to a specified revision.
    • :meth:.Inbox.mark_all_read to mark all messages as read with one API call.
    • :meth:~.InboxableMixin.unblock_subreddit to unblock a subreddit.
    • :meth:.update_crowd_control_level to update the crowd control level of a post.
    • :meth:.moderator_subreddits, which returns information about the subreddits that the authenticated user moderates, has been restored.
    • ๐Ÿ‘€ The configuration setting refresh_token has been added back. See for more info.

    ๐Ÿ—„ Deprecated

    • :class:.Reddit keyword argument token_manager.

Previous changes from v7.3.0

  • โž• Added

    • :class:.UserSubreddit for the subreddit attribute of :class:.Redditor.
    • :meth:.Reddit.username_available checks if a username is available.
    • :meth:.trusted to retrieve a :class:.RedditorList of trusted users.
    • to add a user to the trusted list.
    • ๐Ÿšš :meth:.distrust to remove a user from the trusted list.
    • ๐Ÿ :class:.SQLiteTokenManager (may not work on Windows)

    ๐Ÿ”„ Changed

    • :meth:.Redditor.moderated will now objectify all data returned from the API.
    • The wiki_edit endpoint has been changed from r/{subreddit}/api/wiki/edit/ to r/{subreddit}/api/wiki/edit.
    • :meth:.Redditor.block no longer needs to retrieve a user's fullname.

    ๐Ÿ—„ Deprecated

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed bug where :meth:.WikiPage.edit and :meth:.SubredditWiki.create would fail if passed content and reason parameters that produced a request with a body greater than 500 KiB, even when the parameters did not exceed their respective permitted maximum lengths.
    • ๐Ÿ›  Fixed bug where :meth:.Reddit.request could not handle instances of BadRequest\s when the JSON data contained only the keys "reason" and "message".
    • ๐Ÿ›  Fixed bug where :meth:.Reddit.request could not handle instances of BadRequest\s when the response did not contain valid JSON data.
    • ๐Ÿ›  Fixed bug where :meth:.FullnameMixin.fullname sometimes returned the wrong fullname.