Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

nodes

nodes: Collection<number, Node> = ...

The manager's nodes.

Readonly options

The manager's options.

players

players: Collection<string, Player> = ...

The manager's players.

spotifyToken

spotifyToken: null | string = null

The manager's spotify token. Set when running LavalinkManager#connectNodes().

worker

worker: Worker<{}>

Accessors

leastLoadNodes

  • get leastLoadNodes(): Node[]

Methods

connectNodes

  • connectNodes(): Promise<PromiseSettledResult<Node>[]>

createPlayer

decodeTracks

  • decodeTracks(tracks: string[]): Promise<Track[]>
  • Decode track strings into an array of tracks.

    Parameters

    • tracks: string[]

      The tracks encoded in base64.

    Returns Promise<Track[]>

    An array of the decoded tracks.

resolveTrack

search

  • Get search results based on a query. If the query is a link, it will attempt to get a track from the link. If not, it will return results from a search using the specified or default source. If spotify auth is defined in the manager config, spotify links will resolve into youtube tracks.

    Parameters

    • query: string

      The query to search with.

    • requester: string

      The user that requsted the track. This value is not crucial.

    • source: Source = ...

      The source to use if the query is not a link, or if the link is from spotify. Defaults to the manager's default source.

    Returns Promise<SearchResult>

    The search result.

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method

Generated using TypeDoc