Create a new DisTube class.
Discord.JS client
Custom DisTube options
Readonly
clientDiscord.js v14 client
Readonly
filtersDisTube ffmpeg audio filters
Readonly
handlerDisTube internal handler
Readonly
optionsDisTube options
Readonly
pluginsDisTube plugins
Readonly
queuesQueues manager
Readonly
voicesDisTube voice connections manager
Static
defaultDisTube version
Static
versionAdd related song to the queue
The type can be resolved to give a Queue
The guild queue
Create a custom playlist
Array of url or Song
Optional options
Rest
...args: Parameters<TypedDisTubeEvents[U]>Get the guild queue
The type can be resolved to give a Queue
Jump to the song number in the queue. The next one is 1, 2,... The previous one is -1, -2,...
The type can be resolved to give a Queue
The song number to play
The new Song will be played
Pause the guild stream
The type can be resolved to give a Queue
The guild queue
Play / add a song or playlist from url. Search and play a song (with ExtractorPlugin) if it is not a valid url.
The channel will be joined if the bot isn't in any channels, the bot will be
moved to this channel if DisTubeOptions.joinNewVoiceChannel is true
Optional options
Play the previous song
The type can be resolved to give a Queue
The new Song will be played
Resume the guild stream
The type can be resolved to give a Queue
The guild queue
Set the playing time to another position
The type can be resolved to give a Queue
Time in seconds
Seeked queue
Set the repeat mode of the guild queue.
Toggle mode (Disabled -> Song -> Queue -> Disabled ->...)
if mode
is undefined
The type can be resolved to give a Queue
Optional
mode: RepeatModeThe repeat modes (toggle if undefined
)
The new repeat mode
Set the guild stream's volume
The type can be resolved to give a Queue
The percentage of volume you want to set
The guild queue
Shuffle the guild queue songs
The type can be resolved to give a Queue
The guild queue
Skip the playing song if there is a next song in the queue. true
and there is no up next song, DisTube will add and
play a related song.
The type can be resolved to give a Queue
The new Song will be played
Stop the guild stream
The type can be resolved to give a Queue
Toggle autoplay mode
The type can be resolved to give a Queue
Autoplay mode state
Static
Readonly
addEmitted after DisTube add a new playlist to the playing Queue.
Static
Readonly
addEmitted after DisTube add a new song to the playing Queue.
Static
Readonly
debugEmitted to provide debug information from DisTube's operation. Useful for troubleshooting or logging purposes.
Debug message string.
Static
Readonly
deleteEmitted when a Queue is deleted with any reasons.
The guild queue
Static
Readonly
disconnectEmitted when the bot is disconnected to a voice channel.
The guild queue
Static
Readonly
errorEmitted when DisTube encounters an error while playing songs.
Static
Readonly
ffmpegEmitted for logging FFmpeg debug information.
Debug message string.
Static
Readonly
finishEmitted when there is no more song in the queue and Queue#autoplay is false
.
The guild queue
Static
Readonly
finishEmitted when DisTube finished a song.
Static
Readonly
initEmitted when DisTube initialize a queue to change queue default properties.
The guild queue
Static
Readonly
noEmitted when Queue#autoplay is true
, Queue#songs is empty, and
DisTube cannot find related songs to play.
The guild queue
Static
Readonly
playEmitted when DisTube play a song.
If DisTubeOptions.emitNewSongOnly is true
, this event is not emitted
when looping a song or next song is the previous one.
DisTube class