ManagerUtils
Utils you can use on the Manager side, for Tracks and other things!
ype: class
Constructor
new LavalinkManager(options:ManagerOptions)Import
import { ManagerUtils } from "lavalink-client";const { ManagerUtils } = require("lavalink-client");Overview
Properties
.LavalinkManager
The provided Manager
Type: LavalinkManager | null
Methods
Builds a Lavalink Track Response to a Client-Track.
If no Manager was proivided to the Util Manager, then manager#playerOptions#requestTransformer can't be used.
Returns: Track
Builds an unresolved Track of a UnresolvedQuery / Track.
If no Manager was proivided to the Util Manager, then manager#playerOptions#requestTransformer can't be used.
Returns: UnresolvedTrack
Checks if provided data is a Lavalink Node.
Returns: boolean
Checks if provided data is a Lavalink Node Options Object.
Returns: boolean
Checks if provided data is a Client Track Object.
Returns: boolean
Checks if provided data is a Client UnresolvedTrack Object.
Returns: boolean
Checks if provided data is a UnresolvedQuery Object.
Returns: boolean
Try's to find the Closest Track possible of an unresovled Track
if Unresolved track has encoded: it will try to decode it
If unresolved Track has uri / isrc it will try to search by that
Returns: Promise<Track | undefined>
Checks if the query string contains a link and checks the followings:
If its source is enabled on the provided node
If managerOptions#validLinks is provided, it also checks for those
Returns: boolean
Checks if SearchPlatform is useable, by checking if the source is enabled on the provided node
Returns: boolean
Last updated