def __post_init__(self): if isinstance(self.last_updated, int): self.updated_on: datetime.datetime = datetime.datetime.fromtimestamp( self.last_updated) if isinstance(self.query, str): self.query = json.loads(self.query)
def __post_init__(self): if isinstance(self.track, str): self.track = json.loads(self.track) if self.track: self.track_object = lavalink.Track(self.track)
def __post_init__(self): if isinstance(self.tracks, str): self.tracks = json.loads(self.tracks)
def __post_init__(self): if isinstance(self.data, str): self.data_string = str(self.data) self.data = json.loads(self.data)