Node
Constructor
new Magmastream.Node(options: NodeOptions)
Properties
Options | Type | Description |
---|---|---|
host | string | The host for the node. |
identifier | string | The identifier for the node. |
password | string | The password for the node. |
port | number | The port for the node. |
retryAmount | number | How many tries connect to the node if connection failed. |
retryDelay | number | Timeout to retry connecting to the node if connection failed. |
resumeStatus | boolean | Whether to resume the previous session. If false music will halt instantly. |
resumeTimeout | number | How load to wait before resuming. |
secure | boolean | Whether the host uses SSL. |
priority | number | Set the priority level of your node. |
Overview
Properties
• manager
The main hub for interacting with Lavalink.
Type Manager
• options
The object that must be created to connect to a Lavalink server.
Type NodeOptions
• socket
The socket for the node.
Type Value WebSocket or null null
• stats
The stats for the node.
Properties Type Description cpu CPUStats The cpu stats for the node. frameStats FrameStats The frame stats for the node. memory MemoryStats The memory stats for the node. players number The amount of players on the node. playingPlayers number The amount of playing players on the node. uptime number The uptime for the node.
• get
connected
Whether the node is connected.
Type boolean
Methods
• connect()
Description Returns Connects to the Node. void
• destroy()
Description Returns Destroys the Node and all players connected with it. void
Table of Contents