defaultOptions
const defaultOptions: object;The default options of a DisTube instance.
They are overridden by the options given to the constructor of DisTube.
Type Declaration
Section titled “Type Declaration”autoplayAttempts
Section titled “autoplayAttempts”autoplayAttempts: number = DEFAULT_AUTOPLAY_ATTEMPTS;crossfade
Section titled “crossfade”crossfade: object;crossfade.curve
Section titled “crossfade.curve”curve: string = DEFAULT_CROSSFADE_CURVE;crossfade.duration
Section titled “crossfade.duration”duration: number = DEFAULT_CROSSFADE_DURATION_SECS;crossfade.warmup
Section titled “crossfade.warmup”warmup: number = DEFAULT_CROSSFADE_WARMUP_SECS;emitAddListWhenCreatingQueue
Section titled “emitAddListWhenCreatingQueue”emitAddListWhenCreatingQueue: true = true;emitAddSongWhenCreatingQueue
Section titled “emitAddSongWhenCreatingQueue”emitAddSongWhenCreatingQueue: true = true;emitNewSongOnly
Section titled “emitNewSongOnly”emitNewSongOnly: false = false;joinNewVoiceChannel
Section titled “joinNewVoiceChannel”joinNewVoiceChannel: true = true;nsfw: false = false;plugins
Section titled “plugins”plugins: never[] = [];preload
Section titled “preload”preload: false = false;savePreviousSongs
Section titled “savePreviousSongs”savePreviousSongs: true = true;stuckThreshold
Section titled “stuckThreshold”stuckThreshold: number = STUCK_THRESHOLD_MS;unhandledError
Section titled “unhandledError”unhandledError: "log" = "log";