Gets the studio host. Returns: scratchattach.user.User: An object representing the studio host.
(self)
| 468 | return commons.parse_object_list(response, user.User, self._session, "username") |
| 469 | |
| 470 | def host(self) -> user.User: |
| 471 | """ |
| 472 | Gets the studio host. |
| 473 | |
| 474 | Returns: |
| 475 | scratchattach.user.User: An object representing the studio host. |
| 476 | """ |
| 477 | managers = self.managers(limit=1, offset=0) |
| 478 | try: |
| 479 | return managers[0] |
| 480 | except Exception: |
| 481 | return None |
| 482 | |
| 483 | def set_fields(self, fields_dict): |
| 484 | """ |