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