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

Method reply_comment

scratchattach/site/project.py:722–738  ·  view source on GitHub ↗

Posts a reply to a comment on the project. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_project` Args: content: Content of the comment that should be posted Warning: Only replies to top

(self, content, *, parent_id, commentee_id="")

Source from the content-addressed store, hash-verified

720 return _comment
721
722 def reply_comment(self, content, *, parent_id, commentee_id=""):
723 """
724 Posts a reply to a comment on the project. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_project`
725
726 Args:
727 content: Content of the comment that should be posted
728
729 Warning:
730 Only replies to top-level comments are shown on the Scratch website. Replies to replies are actually replies to the corresponding top-level comment in the API.
731
732 Therefore, parent_id should be the comment id of a top level comment.
733
734 Keyword Arguments:
735 parent_id: ID of the comment you want to reply to
736 commentee_id: ID of the user you are replying to
737 """
738 return self.post_comment(content, parent_id=parent_id, commentee_id=commentee_id)
739
740 def set_title(self, text):
741 """

Callers 1

replyMethod · 0.95

Calls 1

post_commentMethod · 0.95

Tested by

no test coverage detected