-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
def delete_comment(self, *, comment_id):
"""
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._assert_permission()
return requests.delete(
f"https://api.scratch.mit.edu/proxy/comments/project/{self.id}/comment/{comment_id}/",
headers=self._headers,
cookies=self._cookies,
).headers
Why return just headers and not the entire response? Profile delete comment returns the full response, so why only headers?
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested