Constructor
new Lavalink(options)
- Source:
Properties:
Name | Type | Description |
---|---|---|
host |
string | The hostname for the node |
port |
number | The port number for the node |
address |
string | The full ws address for the node |
region |
string | The region for this node |
userId |
string | The client user id |
numShards |
number | The total number of shards the bot is running |
password |
string | The password used to connect |
connected |
boolean | If it's connected to the node |
draining |
boolean | True if this node will no longer take new connections |
stats |
object | The Lavalink node stats |
Lavalink constructor
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | Lavalink node options
Properties
|
Extends
- EventEmitter
Methods
send(data) → {void}
- Source:
Send data to Lavalink
Parameters:
Name | Type | Description |
---|---|---|
data |
* | Data to send |
Returns:
- Type
- void