Class AbstractDriverAbstract

The abstract class for developing driver to use another audio sending server.

Constructors

Properties

id: string

The id for the driver

wsUrl: string

Ws url for dealing connection to lavalink/nodelink server

httpUrl: string

Http url for dealing rest request to lavalink/nodelink server

sessionId: null | string

The lavalink server season id to resume

playerFunctions: RainlinkFunctions

All function to extend support driver on RainlinkPlayer class

functions: RainlinkFunctions

All function to extend support driver on Rainlink class

manager: Rainlink

Rainlink manager class

Rainlink reuqested lavalink/nodelink server

Methods

  • Fetch function for dealing rest request to lavalink/nodelink server

    Type Parameters

    • D = any

    Parameters

    Returns Promise<undefined | D>

    Promise<D | undefined>

  • Close the lavalink/nodelink server

    Returns void

    void

  • Update a season to resume able or not

    Parameters

    • sessionId: string
    • mode: boolean
    • timeout: number

    Returns Promise<void>

    void