Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • Create a node.

    Parameters

    • options: NodeOptions

      The options to use for the node.

    • identifier: number

      The node's identifier.

    • manager: LavalinkManager

      The node's manager.

    Returns Node

Properties

identifier

identifier: number

manager

Readonly options

The node's options.

state

state: NodeState = ...

The node's state.

stats

stats: NodeStats = ...

The node's stats.

Methods

connect

  • connect(): Promise<void>

destroy

  • destroy(reason?: string): void
  • Destroy the node and all attatched players.

    Parameters

    • reason: string = 'Manual destroy'

      The reason the node was destroyed.

    Returns void

request

  • Make a REST request.

    Parameters

    Returns Promise<{ json: any; res: Response }>

    The response from the server.

send

  • send(msg: any): Promise<boolean>
  • Send data to the lavalink server.

    Parameters

    • msg: any

      The data to send.

    Returns Promise<boolean>

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method

Generated using TypeDoc