Skip to content

@kattowo/distube

The reference of every exported member of DisTube.

The library is split in three layers:

Layer What it does
DisTube The entry point. It holds the queues, the voice connections and the plugins.
Queue The playback state of a guild: the songs, the filters, the volume.
Plugin A music source. It resolves the URLs, searches the tracks and gives the stream.
Class Description
DisTube The main class.
Queue The state of the playback of a guild.
Song A track.
Playlist A list of tracks.
SearchResult The result of a search.
ExtractorPlugin The base class of the music sources.
InfoExtractorPlugin A source that only knows the metadata.
PlayableExtractorPlugin A source that plays the tracks but cannot search.
PluginError The error a plugin raises.
DisTubeError The error of the library.
StreamServer The local HTTP server the plugins stream through.
FilterManager The audio filters of a queue.
DisTubeVoice A voice connection.
DisTubeHandler Resolves the URLs and the searches.
Type Description
DisTubeOptions The options of the client.
CrossfadeOptions The crossfade options of the client.
CrossfadeStreamOptions The options of a crossfade transition stream.
PreparedCrossfadeInput The input returned by the crossfade adapter.
PlayOptions The options of DisTube#play().
SearchOptions The options of a search.
SongInfo The raw data of a track.
Events The events of the library.
RepeatMode The repeat modes of a queue.
PluginType The roles of a plugin.
PluginErrorCode The error codes a plugin raises.
Constant Description
defaultFilters The built-in audio filters.
defaultOptions The default options of the client.
DEFAULT_VOLUME The default volume of a queue.
AUDIO_SAMPLE_RATE The sample rate of the audio.