PRAW v6.5.0 Release Notes

Release Date: 2020-01-05 // 22 days ago
  • Added

    • :meth:.set_original_content supports marking a submission as original content.
    • :meth:.unset_original_content supports unmarking a submission as original content.
    • :meth:.Redditor.moderated to get a list of a Redditor's moderated subreddits.
    • Parameter without_websockets to :meth:~.Subreddit.submit_image and :meth:~.Subreddit.submit_video to submit without using WebSockets.
    • 👍 :meth:.Reddit.redditor supports fullname param to fetch a Redditor by the fullname instead of name. :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 with new removal reason classes
    • Parameters mod_note and reason_id to :meth:.ThingModerationMixin.remove to optionally apply a removal reason on removal
    • ➕ Add :class:.SubredditModerationStream to enable moderation streams
    • Attribute stream to :class:.SubredditModeration to interact with new moderation streams
    • ➕ Add :meth:.SubredditModerationStream.edited to allow streaming of :meth:.SubredditModeration.edited
    • ➕ Add :meth:.SubredditModerationStream.log to allow streaming of :meth:.SubredditModeration.log
    • ➕ Add :meth:.SubredditModerationStream.modmail_conversations to allow streaming of :meth:.Modmail.conversations
    • ➕ Add :meth:.SubredditModerationStream.modqueue to allow streaming of :meth:.SubredditModeration.modqueue
    • ➕ Add :meth:.SubredditModerationStream.reports to allow streaming of :meth:.SubredditModeration.reports
    • ➕ Add :meth:.SubredditModerationStream.spam to allow streaming of :meth:.SubredditModeration.spam
    • ➕ Add :meth:.SubredditModerationStream.unmoderated to allow streaming of :meth:.SubredditModeration.unmoderated
    • ➕ Add :meth:.SubredditModerationStream.unread to allow streaming of :meth:.SubredditModeration.unread
    • Parameter exclude_before to :func:.stream_generator to allow :meth:.SubredditModerationStream.modmail_conversations to work
    • Parameters allowable_content and max_emojis to :meth:~.SubredditRedditorFlairTemplates.add, :meth:~.SubredditLinkFlairTemplates.add, and :meth:~.SubredditFlairTemplates.update, as well as its child classes.

    🗄 Deprecated

    • :meth:.moderator_subreddits as :meth:.Redditor.moderated provides more functionality.
    • 🚚 The file for ModActions (praw/models/modaction.py) has been moved to praw/models/mod_action.py and the previous has been Deprecated.

    Expected Changes

    • The behavior of :class:.APIException will no longer unicode-escape strings in the next minor release