PRAW v6.5.0 Release Notes

Release Date: 2020-01-05 // about 4 years 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

    • Method reddit.user.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 func:APIException will no longer unicode-escape strings in the next minor release