Create a new DisTube class.
Discord.JS client
Custom DisTube options
ReadonlyclientDiscord.js v14 client
ReadonlyfiltersDisTube ffmpeg audio filters
ReadonlyhandlerDisTube internal handler
ReadonlyoptionsDisTube options
ReadonlypluginsDisTube plugins
ReadonlyqueuesQueues manager
ReadonlyvoicesDisTube voice connections manager
StaticdefaultDisTube version
StaticversionAdd 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
Emit debug event
debug message
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
Optionalevent: keyof DisTubeEventsResume 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
Optionalmode: 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 ReadonlyaddEmitted after DisTube add a new playlist to the playing Queue.
Static ReadonlyaddEmitted after DisTube add a new song to the playing Queue.
Static ReadonlydebugEmitted to provide debug information from DisTube's operation. Useful for troubleshooting or logging purposes.
Debug message string.
Static ReadonlydeleteEmitted when a Queue is deleted with any reasons.
Static ReadonlydisconnectEmitted when the bot is disconnected to a voice channel.
Static ReadonlyerrorEmitted when DisTube encounters an error while playing songs.
Static ReadonlyffmpegEmitted for logging FFmpeg debug information.
Debug message string.
Static ReadonlyfinishEmitted when there is no more song in the queue and Queue#autoplay is false.
Static ReadonlyfinishEmitted when DisTube finished a song.
Static ReadonlyinitEmitted when DisTube initialize a queue to change queue default properties.
Static ReadonlynoEmitted when Queue#autoplay is true, Queue#songs is empty, and
DisTube cannot find related songs to play.
Static ReadonlyplayEmitted 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