Widget¶
- class praw.models.Widget(reddit: praw.Reddit, _data: Dict[str, Any])¶
Base class to represent a
Widget.- __init__(reddit: praw.Reddit, _data: Dict[str, Any])¶
Initialize a
Widgetinstance.
- mod() praw.models.WidgetModeration¶
Get an instance of
WidgetModerationfor this widget.Note
Using any of the methods of
WidgetModerationwill likely make the data in theSubredditWidgetsthat this widget belongs to outdated. To remedy this, callrefresh().
- classmethod parse(data: Dict[str, Any], reddit: praw.Reddit) Any¶
Return an instance of
clsfromdata.- Parameters:
data – The structured data.
reddit – An instance of
Reddit.