DisTubeVoiceEvents
type DisTubeVoiceEvents = object;The events emitted by a DisTubeVoice instance.
Properties
Section titled “Properties”channelChange
Section titled “channelChange”channelChange: (oldChannel, newChannel) => Awaitable;Emitted when the connection moves to another voice channel.
Parameters
Section titled “Parameters”oldChannel
Section titled “oldChannel”VoiceBasedChannel
The previous voice channel
newChannel
Section titled “newChannel”VoiceBasedChannel
The new voice channel
Returns
Section titled “Returns”disconnect
Section titled “disconnect”disconnect: (error?) => Awaitable;Emitted when the voice connection is disconnected.
Parameters
Section titled “Parameters”error?
Section titled “error?”Error
The error that caused the disconnection, when there is one.
Returns
Section titled “Returns”error: (error) => Awaitable;Emitted when an error occurs while playing the audio.
Parameters
Section titled “Parameters”Error
The error
Returns
Section titled “Returns”finish
Section titled “finish”finish: () => Awaitable;Emitted when the audio player becomes idle, i.e. the song is finished.