Tracks and Playlists#
Tracks and playlists are returned from Player.fetch_tracks() and
Node.decode_track().
- class mafic.Track(*, track_id, identifier, seekable, author, length, stream, position=0, title, uri, artwork_url, isrc, source)#
Bases:
objectRepresents a track.
- Parameters:
track_id (
str) – The ID of the track.title (
str) – The title of the track.identifier (
str) – The identifier of the track.source (
str) – The source of the track.stream (
bool) – Whether the track is a stream.seekable (
bool) – Whether the track is seekable.position (
int) – The current position of the track.length (
int) – The length of the track.
- artwork_url#
The artwork URL of the track. This is always
Noneif the node does not use Lavalink v4.New in version 2.2.
Attributes