Rest
This content is for the 3.4.2 version. Switch to the latest version for up-to-date documentation.
Wrapper around Lavalink REST API
Constructors
new Rest()
new Rest(
node
,options
):Rest
Parameters
• node: Node
An instance of Node
• options: NodeOption
Returns
Defined in
Methods
decode()
decode(
track
):Promise
<null
|Track
>
Decode a track
Parameters
• track: string
Encoded track
Returns
Promise
<null
| Track
>
Promise that resolves to a track or void
Defined in
resolve()
resolve(
identifier
):Promise
<null
|LavalinkResponse
>
Resolve a track
Parameters
• identifier: string
Track ID
Returns
Promise
<null
| LavalinkResponse
>
A promise that resolves to a Lavalink response or void