PRAW v7.1.0 Release Notes
Release Date: 2020-06-22 // almost 4 years ago-
โ Added
- :class:
.Rule
to represent one rule of a subreddit. - :class:
.SubredditRules
to get and add rules. - Ability to submit polls with :meth:
~.Subreddit.submit_poll
. - :class:
.PollData
and :class:.PollOption
. - ๐ Ability to view poll data and poll options via the
.poll_data
attribute on poll submissions. - โ Add method :meth:
~.Reddit.delete
to :class:.Reddit
class to support HTTP DELETE requests. - โ Added :class:
.CalendarConfiguration
to represent the configuration of a :class:.Calendar
widget. - โ Added :class:
.Hover
to represent the hover state of a :class:.Button
. - โ Added :class:
.Styles
to represent widget styling information. - โก๏ธ Ability to stream live thread updates via new class :class:
.LiveThreadStream
with method :meth:~.LiveThreadStream.updates
.
๐ Changed
- โก๏ธ :meth:
.RemovalReason.update
's parameters are now optional. - :meth:
.SubredditRemovalReasons.__getitem__
now takes integers and slices to get removal reasons from the list of reasons as returned by Reddit.
๐ Deprecated
- ๐ :attr:
.WebSocketException.original_exception
is deprecated and slated for removal in PRAW 8.0.
๐ Fixed
- An issue where certain subreddit settings could not be set through
:meth:
.SubredditModeration.update
, such aswelcome_message_enabled
andwelcome_message_text
. This change also removes the need for PRAW to track current subreddit settings and send unmodified ones in the update request. - Instances of
BadRequest
\ s captured by PRAW that do not contain any detailed JSON data are re-raised as the originalBadRequest
. - :meth:
~.Subreddit.submit_image
and :meth:~.Subreddit.submit_video
will throw :class:.MediaPostFailed
when Reddit fails to post an image or video post.
- :class: