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)
| 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 | """ |
no test coverage detected