WidgetModeration

class praw.models.WidgetModeration(widget, subreddit, reddit)

Class for moderating a particular widget.

Example usage:

widget = reddit.subreddit('my_sub').widgets.sidebar[0]
widget.mod.update(shortName='My new title')
widget.mod.delete()
__init__(widget, subreddit, reddit)

Initialize the widget moderation object.

delete()

Delete the widget.

Example usage:

widget.mod.delete()
update(**kwargs)

Update the widget. Returns the updated widget.

Parameters differ based on the type of widget. See Reddit documentation or the document of the particular type of widget. For example, update a text widget like so:

text_widget.mod.update(shortName='New text area', text='Hello!')

Note

Most parameters follow the lowerCamelCase convention. When in doubt, check the Reddit documentation linked above.