ItemModeration

ItemModeration is a utility class to aid in moderation comments, submissions and modmail. Specific implementations such as CommentModeration exist as well, and the base class may be used by certain models.

class apraw.models.ItemModeration(reddit: Reddit, item: apraw.models.helpers.apraw_base.aPRAWBase)

A helper class to moderate comments, submissions and modmail.

reddit: Reddit
The Reddit instance with which requests are made.
fullname: str
The ID prepended with the kind of the item this helper belongs to.
approve()

Approve the Reddit item.

Returns:resp – The API response JSON.
Return type:Dict
distinguish(how: NewType.<locals>.new_type = 'yes', sticky: bool = False)

Distinguish the Reddit item.

Parameters:
  • how ("yes" or "no" or "admin" or "special") – The type of distinguishment to be added to the item.
  • sticky (bool, optional) – Whether the item should be stickied.
Returns:

resp – The API response JSON.

Return type:

Dict

ignore_reports()

Ignore reports on the Reddit item.

Returns:resp – The API response JSON.
Return type:Dict
remove()

Remove the Reddit item.

Returns:resp – The API response JSON.
Return type:Dict
undistinguish()

Undistinguish the Reddit item.

Returns:resp – The API response JSON.
Return type:Dict
unignore_reports()

Unignore previously ignored reports on the Reddit item.

Returns:resp – The API response JSON.
Return type:Dict