Class RainlinkTrack

A class for managing track info

Constructors

  • The rainlink track class for playing track from lavalink

    Parameters

    • options: RawTrack

      The raw track resolved from rest, use RawTrack interface

    • requester: unknown

      The requester details of this track

    • OptionaldriverName: string

    Returns RainlinkTrack

Properties

encoded: string

Encoded string from lavalink

identifier: string

Identifier string from lavalink

isSeekable: boolean

Whenever track is seekable or not

author: string

Track's author

duration: number

Track's duration

isStream: boolean

Whenever track is stream able or not

position: number

Track's position

title: string

Track's title

uri: null | string = null

Track's URL

artworkUrl: null | string = null

Track's artwork URL

isrc: null | string = null

Track's isrc

source: string

Track's source name

pluginInfo: unknown

Data from lavalink plugin

requester: unknown

Track's requester

realUri: null | string = null

Track's realUri (youtube fall back)

driverName?: string

Name of the driver that search this track

Accessors

  • get isPlayable(): boolean
  • Whenever track is able to play or not

    Returns boolean

    boolean

  • get raw(): RawTrack
  • Get all raw details of the track

    Returns RawTrack

    RawTrack