MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / report_comment

Method report_comment

scratchattach/site/project.py:674–686  ·  view source on GitHub ↗

Reports a comment by its ID to the Scratch team. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_project` Args: comment_id: The id of the comment that should be reported

(self, *, comment_id)

Source from the content-addressed store, hash-verified

672 )
673
674 def report_comment(self, *, comment_id):
675 """
676 Reports a comment by its ID to the Scratch team. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_project`
677
678 Args:
679 comment_id: The id of the comment that should be reported
680 """
681 self._assert_auth()
682 return requests.delete(
683 f"https://api.scratch.mit.edu/proxy/comments/project/{self.id}/comment/{comment_id}/report",
684 headers=self._headers,
685 cookies=self._cookies,
686 )
687
688 def post_comment(self, content, *, parent_id="", commentee_id=""):
689 """

Callers 1

reportMethod · 0.95

Calls 2

_assert_authMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected