🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

distube

Package Overview
Dependencies
Maintainers
1
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

distube - npm Package Compare versions

Comparing version

to
4.2.1

66

dist/index.d.ts

@@ -130,3 +130,3 @@ import * as ytdl from '@distube/ytdl-core';

* YouTube cookies. Guide: {@link
* https://distube.js.org/#/docs/DisTube/main/general/cookie | YouTube Cookies}
* https://github.com/skick1234/DisTube/wiki/YouTube-Cookies | YouTube Cookies}
*/

@@ -171,2 +171,3 @@ youtubeCookie?: Cookie[] | string;

* FFmpeg path
* @deprecated
*/

@@ -176,4 +177,22 @@ ffmpegPath?: string;

* FFmpeg default arguments
* @deprecated
*/
ffmpegDefaultArgs?: FFmpegOptions;
ffmpegDefaultArgs?: FFmpegArgs;
/**
* FFmpeg options
*/
ffmpeg?: {
/**
* FFmpeg path
*/
path?: string;
/**
* FFmpeg default arguments
*/
args?: {
global?: FFmpegArgs;
input?: FFmpegArgs;
output?: FFmpegArgs;
};
};
};

@@ -370,3 +389,11 @@ /**

}
type FFmpegOptions = Record<string, string | number | boolean | Array<string | null | undefined> | null | undefined>;
type FFmpegArgs = Record<string, string | number | boolean | Array<string | null | undefined> | null | undefined>;
type FFmpegOptions = {
path: string;
args: {
global: FFmpegArgs;
input: FFmpegArgs;
output: FFmpegArgs;
};
};

@@ -394,7 +421,2 @@ /**

directLink: true;
ffmpegPath: string;
ffmpegDefaultArgs: {
analyzeduration: number;
hide_banner: true;
};
};

@@ -421,2 +443,4 @@

VOICE_DIFFERENT_CLIENT: string;
FFMPEG_EXITED: (code: number) => string;
FFMPEG_NOT_INSTALLED: (path: string) => string;
NO_QUEUE: string;

@@ -768,6 +792,3 @@ QUEUE_EXIST: string;

interface StreamOptions {
ffmpeg: {
path: string;
args: FFmpegOptions;
};
ffmpeg: FFmpegOptions;
seek?: number;

@@ -777,2 +798,3 @@ type?: StreamType;

declare const chooseBestVideoFormat: ({ duration, formats, isLive }: Song) => ytdl.videoFormat | undefined;
declare const checkFFmpeg: (distube: DisTube) => void;
/**

@@ -783,2 +805,3 @@ * Create a stream to play with {@link DisTubeVoice}

debug: (debug: string) => Awaitable;
error: (error: Error) => Awaitable;
}> {

@@ -911,4 +934,7 @@ private killed;

directLink: boolean;
ffmpegPath: string;
ffmpegDefaultArgs: FFmpegOptions;
/** @deprecated */
ffmpegPath: undefined;
/** @deprecated */
ffmpegDefaultArgs: undefined;
ffmpeg: FFmpegOptions;
constructor(options: DisTubeOptions);

@@ -1024,3 +1050,3 @@ }

get values(): Filter[];
get ffmpegArgs(): FFmpegOptions;
get ffmpegArgs(): FFmpegArgs;
toString(): string;

@@ -1630,5 +1656,5 @@ }

* @deprecated Use `youtubeCookie: Cookie[]` instead. Guide: {@link
* https://distube.js.org/#/docs/DisTube/main/general/cookie | YouTube Cookies}
* https://github.com/skick1234/DisTube/wiki/YouTube-Cookies | YouTube Cookies}
*/
constructor(client: Client, otp: DisTubeOptions & {
constructor(client: Client, opts: DisTubeOptions & {
youtubeCookie: string;

@@ -1653,5 +1679,5 @@ });

* @param client - Discord.JS client
* @param otp - Custom DisTube options
* @param opts - Custom DisTube options
*/
constructor(client: Client, otp?: DisTubeOptions);
constructor(client: Client, opts?: DisTubeOptions);
static get version(): string;

@@ -1981,2 +2007,2 @@ /**

export { type Awaitable, BaseManager, type Chapter, type CustomPlaylistOptions, CustomPlugin, DirectLinkPlugin, DisTube, DisTubeBase, DisTubeError, type DisTubeEvents, DisTubeHandler, type DisTubeOptions, DisTubeStream, DisTubeVoice, type DisTubeVoiceEvents, DisTubeVoiceManager, Events, ExtractorPlugin, type FFmpegOptions, type Filter, FilterManager, type FilterResolvable, type Filters, GuildIdManager, type GuildIdResolvable, Options, type OtherSongInfo, type PlayHandlerOptions, type PlayOptions, Playlist, type PlaylistInfo, Plugin, PluginType, Queue, QueueManager, type RelatedSong, RepeatMode, type ResolveOptions, type ResolvePlaylistOptions, type SearchResult, SearchResultPlaylist, SearchResultType, SearchResultVideo, Song, StreamType, TaskQueue, type TypedDisTubeEvents, checkIntents, checkInvalidKey, chooseBestVideoFormat, DisTube as default, defaultFilters, defaultOptions, formatDuration, isClientInstance, isGuildInstance, isMemberInstance, isMessageInstance, isNsfwChannel, isObject, isRecord, isSnowflake, isSupportedVoiceChannel, isTextChannelInstance, isTruthy, isURL, isVoiceChannelEmpty, objectKeys, parseNumber, resolveGuildId, toSecond, version };
export { type Awaitable, BaseManager, type Chapter, type CustomPlaylistOptions, CustomPlugin, DirectLinkPlugin, DisTube, DisTubeBase, DisTubeError, type DisTubeEvents, DisTubeHandler, type DisTubeOptions, DisTubeStream, DisTubeVoice, type DisTubeVoiceEvents, DisTubeVoiceManager, Events, ExtractorPlugin, type FFmpegArgs, type FFmpegOptions, type Filter, FilterManager, type FilterResolvable, type Filters, GuildIdManager, type GuildIdResolvable, Options, type OtherSongInfo, type PlayHandlerOptions, type PlayOptions, Playlist, type PlaylistInfo, Plugin, PluginType, Queue, QueueManager, type RelatedSong, RepeatMode, type ResolveOptions, type ResolvePlaylistOptions, type SearchResult, SearchResultPlaylist, SearchResultType, SearchResultVideo, Song, StreamType, TaskQueue, type TypedDisTubeEvents, checkFFmpeg, checkIntents, checkInvalidKey, chooseBestVideoFormat, DisTube as default, defaultFilters, defaultOptions, formatDuration, isClientInstance, isGuildInstance, isMemberInstance, isMessageInstance, isNsfwChannel, isObject, isRecord, isSnowflake, isSupportedVoiceChannel, isTextChannelInstance, isTruthy, isURL, isVoiceChannelEmpty, objectKeys, parseNumber, resolveGuildId, toSecond, version };
{
"name": "distube",
"version": "4.2.0",
"version": "4.2.1",
"description": "A Discord.js module to simplify your music commands and play songs with audio filters on Discord without any API key.",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -22,3 +22,3 @@ <div align="center">

A Discord.js module to simplify your music commands and play songs with audio filters on Discord without any API key.
A powerful Discord.js module for simplifying music commands and effortless playback of various sources with integrated audio filters.

@@ -25,0 +25,0 @@ [DisTube Support Server](https://discord.gg/feaDd9h) - [Frequently Asked Questions](https://discord.gg/feaDd9h)

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet