Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 def __post_init__(self):
     if isinstance(self.tracks, str):
         self.tracks = json.loads(self.tracks)
Exemplo n.º 4
0
 def __post_init__(self):
     if isinstance(self.data, str):
         self.data_string = str(self.data)
         self.data = json.loads(self.data)