musicConnection.js
#
musicConnectionExample
new MusicConnection( joinVoiceChannel(...),);
#
musicConnection~MusicConnectionKind: inner class of musicConnection
Properties
Name | Type | Description |
---|---|---|
voiceConnection | object | The @discordjs/voice VoiceConnection |
audioPlayer | object | The @discordjs/voice audio player |
queueLock | boolean | Queue Lock |
readyLock | boolean | Ready Lock |
currentTrack | Object | Currently playing track |
queue | Array | Array of tracks queued |
loop | string | Loop mode |
shuffle | boolean | Shuffle mode |
#
new MusicConnection(voiceConnection)Creates and returns a MusicConnection class
Param | Type | Description |
---|---|---|
voiceConnection | object | discord.js voice connection |
#
musicConnection~addToQueue(track)Adds a Track class to the queue
Kind: inner method of musicConnection
Param | Type | Description |
---|---|---|
track | object | Track Class |
#
musicConnection~stop()Stops the player and clears the queue.
Kind: inner method of musicConnection
#
musicConnection~processQueue()Processes the queue, plays the next track if there is one.
Kind: inner method of musicConnection
#
musicConnection~changeMode()Change queue mode to radio or queue (in the future playlists?)
Kind: inner method of musicConnection