Skip to content

sociallinks

Contains objects related to Roblox social links.

Bases: BaseUniverseSocialLink

Represents a universe or group's social links.

Attributes:

Name Type Description
id int

The social link's ID.

title str

The social link's title.

url str

The social link's URL.

type SocialLinkType

The social link's type.

Source code in roblox/sociallinks.py
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
class SocialLink(BaseUniverseSocialLink):
    """
    Represents a universe or group's social links.

    Attributes:
        id: The social link's ID.
        title: The social link's title.
        url: The social link's URL.
        type: The social link's type.
    """

    def __init__(self, client: Client, data: dict):
        self._client: Client = client
        self.id: int = data["id"]
        super().__init__(client=self._client, social_link_id=self.id)
        self.title: str = data["title"]
        self.url: str = data["url"]
        self.type: SocialLinkType = SocialLinkType(data["type"])

SocialLinkType

Bases: Enum

Represents a type of social link.

Source code in roblox/sociallinks.py
17
18
19
20
21
22
23
24
25
26
27
class SocialLinkType(Enum):
    """
    Represents a type of social link.
    """

    facebook = "Facebook"
    twitter = "Twitter"
    youtube = "YouTube"
    twitch = "Twitch"
    discord = "Discord"
    roblox_group = "RobloxGroup"