Deletes a comment by 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)
| 220 | return _comment |
| 221 | |
| 222 | def delete_comment(self, *, comment_id): |
| 223 | # NEEDS TO BE TESTED! |
| 224 | """ |
| 225 | Deletes a comment by ID. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_project` |
| 226 | |
| 227 | Args: |
| 228 | comment_id: The id of the comment that should be deleted |
| 229 | """ |
| 230 | self._assert_auth() |
| 231 | return requests.delete( |
| 232 | f"https://api.scratch.mit.edu/proxy/comments/studio/{self.id}/comment/{comment_id}/", |
| 233 | headers=self._headers, |
| 234 | cookies=self._cookies, |
| 235 | ).headers |
| 236 | |
| 237 | def report_comment(self, *, comment_id): |
| 238 | # NEEDS TO BE TESTED! |
nothing calls this directly
no test coverage detected