Wrapper around Lavalink REST API

Constructors

Properties

auth: string

Credentials to access Lavalink

node: Node

Node that initialized this instance

url: string

URL of Lavalink

Accessors

Methods

  • Decode a track

    Parameters

    • track: string

      Encoded track

    Returns Promise<undefined | Track>

    Promise that resolves to a track

  • Deletes a Lavalink player

    Parameters

    • guildId: string

      guildId where this player is

    Returns Promise<void>

  • Internal

    Make a request to Lavalink

    Type Parameters

    • T = unknown

    Parameters

    • fetchOptions: FetchOptions

    Returns Promise<undefined | T>

    RestError when encountering a Lavalink error response

  • Gets the player with the specified guildId

    Parameters

    • guildId: string

    Returns Promise<undefined | LavalinkPlayer>

    Promise that resolves to a Lavalink player

  • Gets the status of this node

    Returns Promise<undefined | Stats>

    Promise that resolves to a node stats response

  • Release blacklisted IP address into pool of IPs

    Parameters

    • address: string

      IP address

    Returns Promise<void>

  • Updates the session with a resume boolean and timeout

    Parameters

    • Optionalresuming: boolean

      Whether resuming is enabled for this session or not

    • Optionaltimeout: number

      Timeout to wait for resuming

    Returns Promise<undefined | SessionInfo>

    Promise that resolves to a Lavalink player