partialgroup
        roblox.partials.partialgroup
¶
    This file contains partial objects related to Roblox groups.
        
AssetPartialGroup            (BaseGroup)
        
¶
    Represents a partial group in the context of a Roblox asset.
Intended to parse the data[0]["creator"] data from https://games.roblox.com/v1/games.
Attributes:
| Name | Type | Description | 
|---|---|---|
| _shared | ClientSharedObject | The shared object, which is passed to all objects this client generates. | 
| id | int | The group's name. | 
| creator | BaseUser | The group's owner. | 
| name | str | The group's name. | 
Source code in roblox/partials/partialgroup.py
          class AssetPartialGroup(BaseGroup):
    """
    Represents a partial group in the context of a Roblox asset.
    Intended to parse the `data[0]["creator"]` data from https://games.roblox.com/v1/games.
    Attributes:
        _shared: The shared object, which is passed to all objects this client generates.
        id: The group's name.
        creator: The group's owner.
        name: The group's name.
    """
    def __init__(self, shared: ClientSharedObject, data: dict):
        """
        Arguments:
            shared: The ClientSharedObject.
            data: The data from the endpoint.
        """
        self._shared: ClientSharedObject = shared
        self.creator: BaseUser = BaseUser(shared=shared, user_id=data["Id"])
        self.id: int = data["CreatorTargetId"]
        self.name: str = data["Name"]
        super().__init__(shared, self.id)
    def __repr__(self):
        return f"<{self.__class__.__name__} id={self.id} name={self.name!r}>"
__init__(self, shared: ClientSharedObject, data: dict)
  
      special
  
¶
    Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| shared | ClientSharedObject | The ClientSharedObject. | required | 
| data | dict | The data from the endpoint. | required | 
Source code in roblox/partials/partialgroup.py
          def __init__(self, shared: ClientSharedObject, data: dict):
    """
    Arguments:
        shared: The ClientSharedObject.
        data: The data from the endpoint.
    """
    self._shared: ClientSharedObject = shared
    self.creator: BaseUser = BaseUser(shared=shared, user_id=data["Id"])
    self.id: int = data["CreatorTargetId"]
    self.name: str = data["Name"]
    super().__init__(shared, self.id)
__repr__(self)
  
      special
  
¶
    Source code in roblox/partials/partialgroup.py
          def __repr__(self):
    return f"<{self.__class__.__name__} id={self.id} name={self.name!r}>"
        
UniversePartialGroup            (BaseGroup)
        
¶
    Represents a partial group in the context of a Roblox universe.
Attributes:
| Name | Type | Description | 
|---|---|---|
| _data | dict | The data we get back from the endpoint. | 
| _shared | ClientSharedObject | The shared object, which is passed to all objects this client generates. | 
| id | Id of the group | |
| name | str | Name of the group | 
Source code in roblox/partials/partialgroup.py
          class UniversePartialGroup(BaseGroup):
    """
    Represents a partial group in the context of a Roblox universe.
    Attributes:
        _data: The data we get back from the endpoint.
        _shared: The shared object, which is passed to all objects this client generates.
        id: Id of the group
        name: Name of the group
    """
    def __init__(self, shared: ClientSharedObject, data: dict):
        """
        Arguments:
            shared: The ClientSharedObject.
            data: The data from the endpoint.
        """
        self._shared: ClientSharedObject = shared
        self._data: dict = data
        self.id = data["id"]
        self.name: str = data["name"]
        super().__init__(shared, self.id)
    def __repr__(self):
        return f"<{self.__class__.__name__} id={self.id} name={self.name!r}>"
__init__(self, shared: ClientSharedObject, data: dict)
  
      special
  
¶
    Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| shared | ClientSharedObject | The ClientSharedObject. | required | 
| data | dict | The data from the endpoint. | required | 
Source code in roblox/partials/partialgroup.py
          def __init__(self, shared: ClientSharedObject, data: dict):
    """
    Arguments:
        shared: The ClientSharedObject.
        data: The data from the endpoint.
    """
    self._shared: ClientSharedObject = shared
    self._data: dict = data
    self.id = data["id"]
    self.name: str = data["name"]
    super().__init__(shared, self.id)
__repr__(self)
  
      special
  
¶
    Source code in roblox/partials/partialgroup.py
          def __repr__(self):
    return f"<{self.__class__.__name__} id={self.id} name={self.name!r}>"