PRAW v6.1.0 Release Notes
Release Date: 2019-01-19 // over 5 years ago-
➕ Added
- ➕ Add method :meth:
.Redditor.trophies
to get a list of the Redditor's trophies. - ➕ Add class :class:
.PostFlairWidget
. - Add attributes
reply_limit
andreply_sort
to class :class:.Comment
- ➕ Add class :class:
.SubredditWidgetsModeration
(accessible through :attr:.SubredditWidgets.mod
) and method :meth:.add_text_area
. - ➕ Add class :class:
.WidgetModeration
(accessible through the.mod
attribute on any widget) with methods :meth:~.WidgetModeration.update
and :meth:~.WidgetModeration.delete
. - ➕ Add method :meth:
.Reddit.put
for HTTP PUT requests. - Add methods :meth:
.add_calendar
and :meth:.add_community_list
. - Add methods :meth:
.add_image_widget
and :meth:.upload_image
. - Add method :meth:
.add_custom_widget
. - Add method :meth:
.add_post_flair_widget
. - ➕ Add method :meth:
.add_menu
. - Add method :meth:
.add_button_widget
. - ➕ Add method :meth:
~.SubredditWidgetsModeration.reorder
to reorder a subreddit's widgets. - ➕ Add :class:
.Redditors
(reddit.redditors
) to provide Redditor listings. - ➕ Add :meth:
~.Subreddit.submit_image
for submitting native images to Reddit. - ➕ Add :meth:
~.Subreddit.submit_video
for submitting native videos and videogifs to Reddit.
🔄 Changed
- :meth:
.User.me
returnsNone
in :attr:~praw.Reddit.read_only
mode. - :meth:
.SubredditLinkFlairTemplates.__iter__
uses the v2 flair API endpoint. This change will result in additional fields being returned. All fields that were previously returned will still be returned. - :meth:
.SubredditRedditorFlairTemplates.__iter__
uses the v2 flair API endpoint. The method will still return the exact same items. - Methods :meth:
~.SubredditRedditorFlairTemplates.add
, :meth:~.SubredditLinkFlairTemplates.add
, :meth:~.SubredditRedditorFlairTemplates.update
, and :meth:~.SubredditLinkFlairTemplates.update
can add and update redesign-style flairs with the v2 flair API endpoint. They can still update pre-redesign-style flairs with the older endpoint.
🛠 Fixed
- 📜 Widgets of unknown types are parsed as
Widget
\ s rather than raising an exception.
- ➕ Add method :meth: