Class RainlinkRest

The rest class for get and calling from audio sending node/server REST API

Constructors

  • The lavalink rest server handler class

    Parameters

    • manager: Rainlink

      The rainlink manager

    • options: RainlinkNodeOptions

      The rainlink node options, from RainlinkNodeOptions interface

    • nodeManager: RainlinkNode

      The rainlink's lavalink server handler class

    Returns RainlinkRest

Properties

manager: Rainlink

The rainlink manager

nodeManager: RainlinkNode

The node manager (RainlinkNode class)

Methods

  • Gets all the player with the specified sessionId

    Returns Promise<LavalinkPlayer[]>

    Promise that resolves to an array of Lavalink players

  • Gets current lavalink status

    Returns Promise<undefined | LavalinkStats>

    Promise that resolves to an object of current lavalink status

  • Decode a single track from "encoded" properties

    Parameters

    • base64track: string

    Returns Promise<undefined | RawTrack>

    Promise that resolves to an object of raw track

  • Updates a Lavalink player

    Parameters

    Returns Promise<void>

    Promise that resolves to a Lavalink player

  • Destroy a Lavalink player

    Parameters

    • guildId: string

    Returns Promise<void>

    Promise that resolves to a Lavalink player

  • A track resolver function to get track from lavalink

    Parameters

    • data: string

    Returns Promise<undefined | LavalinkResponse>

    LavalinkResponse

  • Get routeplanner status from Lavalink

    Returns Promise<undefined | RoutePlanner>

    Promise that resolves to a routeplanner response

  • Release blacklisted IP address into pool of IPs

    Parameters

    • address: string

      IP address

    Returns Promise<void>

  • Get Lavalink info

    Returns Promise<undefined | NodeInfo>