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

Method report_comment

scratchattach/site/studio.py:237–250  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 2

_assert_authMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected