Skip to content

DisTubeVoiceEvents

type DisTubeVoiceEvents = object;

The events emitted by a DisTubeVoice instance.

channelChange: (oldChannel, newChannel) => Awaitable;

Emitted when the connection moves to another voice channel.

VoiceBasedChannel

The previous voice channel

VoiceBasedChannel

The new voice channel

Awaitable


disconnect: (error?) => Awaitable;

Emitted when the voice connection is disconnected.

Error

The error that caused the disconnection, when there is one.

Awaitable


error: (error) => Awaitable;

Emitted when an error occurs while playing the audio.

Error

The error

Awaitable


finish: () => Awaitable;

Emitted when the audio player becomes idle, i.e. the song is finished.

Awaitable