Skip to content

Contributor

Contributor(subsonic, role, artist, subRole=None)

Bases: Model

Object that holds all the info about a contributor.

Attributes:

Name Type Description
role str

The role of the contributor.

artist Artist

All the artist info associated with the contributor.

subrole str | None

The subrole of the contributor.

Source code in .venv/lib/python3.11/site-packages/knuckles/models/_contributor.py
def __init__(
    self,
    subsonic: "Subsonic",
    role: str,
    artist: Artist,
    subRole: str | None = None,
) -> None:
    super().__init__(subsonic)

    self.role = role
    self.artist = artist
    self.subrole = subRole