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

Method delete_comment

scratchattach/site/project.py:660–672  ·  view source on GitHub ↗

Deletes a comment by its ID. 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 deleted

(self, *, comment_id)

Source from the content-addressed store, hash-verified

658 )
659
660 def delete_comment(self, *, comment_id):
661 """
662 Deletes a comment by its ID. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_project`
663
664 Args:
665 comment_id: The id of the comment that should be deleted
666 """
667 self._assert_permission()
668 return requests.delete(
669 f"https://api.scratch.mit.edu/proxy/comments/project/{self.id}/comment/{comment_id}/",
670 headers=self._headers,
671 cookies=self._cookies,
672 )
673
674 def report_comment(self, *, comment_id):
675 """

Callers 1

deleteMethod · 0.95

Calls 2

_assert_permissionMethod · 0.95
deleteMethod · 0.45

Tested by

no test coverage detected