You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_user`
(self)
| 733 | return False |
| 734 | |
| 735 | def toggle_commenting(self): |
| 736 | """ |
| 737 | You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_user` |
| 738 | """ |
| 739 | self._assert_permission() |
| 740 | requests.post( |
| 741 | f"https://scratch.mit.edu/site-api/comments/user/{self.username}/toggle-comments/", |
| 742 | headers=headers, |
| 743 | cookies=self._cookies, |
| 744 | ) |
| 745 | |
| 746 | def viewed_projects(self, limit=24, offset=0): |
| 747 | """ |
nothing calls this directly
no test coverage detected