Comment Moderation

class apraw.models.CommentModeration(reddit: Reddit, comment: apraw.models.comment.Comment)

A helper class to moderate comments.

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
lock()

Lock the item from further replies.

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

Remove the Reddit item.

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

Mark a comment that it should not be collapsed because of crowd control.

The comment could still be collapsed for other reasons.

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
unlock()

Unlock the item from further replies.

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