🌋Vulkava
Represents the main Vulkava client.
Last updated
Represents the main Vulkava client.
Last updated
Property | Description | Type |
---|---|---|
Name | Description | Type |
---|---|---|
Methods | Events |
---|---|
* This events only work on my custom lavalink, the speakingStart, speakingStop and userDisconnect are only emitted if sendSpeakingEvents is true, in NodeOptions. The speakingStart and speakingStop are only emitted while the lavalink node is recording audio.
Adds an external source that produces a SearchResult with UnresolvedTracks
Creates a new player or returns an existing one
Decodes a single base64 encoded track into a Track instance
Decodes multiple base64 encoded tracks into an array of Tracks
Handles voice state & voice server update packets and pipes them into the lavalink node
This method is meant to be used on the raw event listener of d.js and rawWS (eris) and requires the gateway intent `GUILD_VOICE_STATES` in order to work properly.
Starts the Vulkava and connects to all lavalink nodes
Fired when any connected lavalink node emits an event
Fired when a lavalink node connects
Fired when a lavalink node resumes its connection (when resumeKey configured)
Fired when a lavalink node disconnects
Fired when something weird happened
Fired when a error occurred
Event for debug messages
Fired when a track starts playing
Fired when a track stops playing
TrackEndReason = 'FINISHED' | 'LOAD_FAILED' | 'STOPPED' | 'REPLACED' | 'CLEANUP'
Fired when a track playback stucks
Fired when a exception occurs during the track playback
Fired when a player is created
Fired when a player is destroyed
Fired when a player gets disconnected from the discord voice server (Vulkava auto-reconnects on close codes: 1006, 4015, 4006 and 4009)
Fired when there is no more tracks to play on the queue
Fired when a lavalink node emits a pong event (used to get lavalink latency)
Fired when a lavalink node has finished processing an audio recording
Fired when a user started speaking (only works while recording and if sendSpeakingEvents=true in NodeOptions)
Fired when a user stopped speaking (100ms of silence) (only works while recording and if sendSpeakingEvents=true in NodeOptions)
Fired when a user disconnected from the voice channel (only works if sendSpeakingEvents=true in NodeOptions)
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Returns | Description |
---|---|
Parameter | Description |
---|---|
Returns | Description |
---|---|
Parameter | Description |
---|---|
Returns | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Returns | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
options
The Vulkava options
nodes
The lavalink node array
clientId
The bot id
players
The players map
---
---
---
---
---
---
---
---
---
---
---
---
---
source
Extends AbstractExternalSource The external source
options
Object The player options
options.guildId
String The guild id that player belongs to
options.voiceChannelId
String The voice channel id
options.textChannelId
String (optional) The text channel id
options.selfDeaf
Boolean (optional) Whether the bot joins the voice channel deafened or not
options.selfMute
Boolean (optional) Whether the bot joins the voice channel muted or not
options.queue
Extends AbstractQueue (optional) A custom queue implementation
The player
encodedTrack
String The base64 encoded track
The decoded track
encodedTracks
The decoded tracks
payload
Object The discord gateway raw payload
query
String The song term to search for
source
SEARCH_SOURCE (optional) The source to search if the query is not a valid URL, default is youtube
The search result
clientId
String The client (bot) id
node
Node The node this event belongs to
payload
Object The actual payload
node
Node The node that was connected
node
Node The node that was resumed
node
Node The node that was disconnected
code
Number The WebSocket close code
reason
String The WebSocket close reason
node
Node The node
warn
String The warn message
node
Node The node
error
Error The error
message
String The debug message
player
Player The player
track
Track The track
player
Player The player
track
Track The track
reason
TrackEndReason The reason why the track stopped playing
player
Player The player
track
Track The track
thresholdMs
Number The threshold in milliseconds
player
Player The player
track
Track The track
exception
Object The exception object
exception.message
String The exception message
exception.severity
'COMMON' | 'SUSPICIOUS' | 'FAULT' The exception severity
exception.cause
String The cause of the exception
player
Player The player
player
Player The player
player
Player The player
code
Number The websocket close code See: discord voice close codes
reason
String The websocket close reason
player
Player The player
node
Node The node
ping
Number (optional) The latency between a player and discord voice gateway
node
Node The node that fired this event
guildId
String The guildId
id
String The record id
player
Player The player
userId
String The user id
player
Player The player
userId
String The user id
player
Player The player
userId
String The user id