Reports a comment by 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)
| 235 | ).headers |
| 236 | |
| 237 | def report_comment(self, *, comment_id): |
| 238 | # NEEDS TO BE TESTED! |
| 239 | """ |
| 240 | Reports a comment by ID to the Scratch team. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_project` |
| 241 | |
| 242 | Args: |
| 243 | comment_id: The id of the comment that should be reported |
| 244 | """ |
| 245 | self._assert_auth() |
| 246 | return requests.delete( |
| 247 | f"https://api.scratch.mit.edu/proxy/comments/studio/{self.id}/comment/{comment_id}/report", |
| 248 | headers=self._headers, |
| 249 | cookies=self._cookies, |
| 250 | ) |
| 251 | |
| 252 | def set_thumbnail(self, *, file): |
| 253 | """ |
nothing calls this directly
no test coverage detected