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

Method delete_comment

scratchattach/site/studio.py:222–235  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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!

Callers

nothing calls this directly

Calls 2

_assert_authMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected