discord-player 7.2.0-dev.2 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +16 -6
- package/dist/index.js +81 -30
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ import { SeekEvent, EqualizerBand, BiquadFilters, PCMFilters, CommonResamplerFil
|
|
|
9
9
|
export { AF_NIGHTCORE_RATE, AF_VAPORWAVE_RATE, BASS_EQ_BANDS, FilterType as BiquadFilterType, BiquadFilters, FiltersChain, AudioFilters as PCMAudioFilters, PCMFilters, Q_BUTTERWORTH, VolumeTransformer } from '@discord-player/equalizer';
|
|
10
10
|
import { AudioResource, StreamType, AudioPlayerError, VoiceConnection, AudioPlayer, AudioPlayerStatus } from 'discord-voip';
|
|
11
11
|
export { AudioPlayer, CreateAudioPlayerOptions, JoinConfig, JoinVoiceChannelOptions, StreamType, createAudioPlayer, createAudioResource, getVoiceConnection, getVoiceConnections, joinVoiceChannel } from 'discord-voip';
|
|
12
|
-
import { Transform, Writable, TransformCallback } from 'node:stream';
|
|
13
12
|
import { RequestOptions } from 'http';
|
|
13
|
+
import { Transform, Writable, TransformCallback } from 'node:stream';
|
|
14
14
|
import { FFmpegLib } from '@discord-player/ffmpeg';
|
|
15
15
|
export * from '@discord-player/ffmpeg';
|
|
16
16
|
|
|
@@ -265,9 +265,9 @@ interface SearchOptions {
|
|
|
265
265
|
*/
|
|
266
266
|
ignoreCache?: boolean;
|
|
267
267
|
/**
|
|
268
|
-
*
|
|
268
|
+
* Request options to be passed with the http request
|
|
269
269
|
*/
|
|
270
|
-
requestOptions?:
|
|
270
|
+
requestOptions?: RequestOptions;
|
|
271
271
|
/**
|
|
272
272
|
* Fallback search engine to use
|
|
273
273
|
*/
|
|
@@ -1132,8 +1132,9 @@ interface FFmpegStreamOptions {
|
|
|
1132
1132
|
seek?: number;
|
|
1133
1133
|
skip?: boolean;
|
|
1134
1134
|
cookies?: string;
|
|
1135
|
+
requestOptions?: RequestOptions;
|
|
1135
1136
|
}
|
|
1136
|
-
declare function FFMPEG_ARGS_STRING(stream: string, fmt?: string, cookies?: string): string[];
|
|
1137
|
+
declare function FFMPEG_ARGS_STRING(stream: string, fmt?: string, cookies?: string, requestOptions?: RequestOptions): string[];
|
|
1137
1138
|
declare function FFMPEG_ARGS_PIPED(fmt?: string): string[];
|
|
1138
1139
|
/**
|
|
1139
1140
|
* Creates FFmpeg stream
|
|
@@ -1591,6 +1592,8 @@ interface VoiceConnectConfig {
|
|
|
1591
1592
|
timeout?: number;
|
|
1592
1593
|
group?: string;
|
|
1593
1594
|
audioPlayer?: AudioPlayer;
|
|
1595
|
+
daveEncryption?: boolean;
|
|
1596
|
+
decryptionFailureTolerance?: number;
|
|
1594
1597
|
}
|
|
1595
1598
|
interface PostProcessedResult {
|
|
1596
1599
|
stream: Readable;
|
|
@@ -2360,6 +2363,8 @@ declare class VoiceUtils {
|
|
|
2360
2363
|
queue: GuildQueue;
|
|
2361
2364
|
audioPlayer?: AudioPlayer;
|
|
2362
2365
|
group?: string;
|
|
2366
|
+
daveEncryption?: boolean;
|
|
2367
|
+
decryptionFailureTolerance?: number;
|
|
2363
2368
|
}): Promise<StreamDispatcher>;
|
|
2364
2369
|
/**
|
|
2365
2370
|
* Joins a voice channel
|
|
@@ -2371,6 +2376,8 @@ declare class VoiceUtils {
|
|
|
2371
2376
|
deaf?: boolean;
|
|
2372
2377
|
maxTime?: number;
|
|
2373
2378
|
group?: string;
|
|
2379
|
+
daveEncryption?: boolean;
|
|
2380
|
+
decryptionFailureTolerance?: number;
|
|
2374
2381
|
}): Promise<VoiceConnection>;
|
|
2375
2382
|
/**
|
|
2376
2383
|
* Disconnects voice connection
|
|
@@ -3214,7 +3221,7 @@ declare class Playlist {
|
|
|
3214
3221
|
title: string;
|
|
3215
3222
|
description: string;
|
|
3216
3223
|
thumbnail: any;
|
|
3217
|
-
type: "
|
|
3224
|
+
type: "playlist" | "album";
|
|
3218
3225
|
source: TrackSource;
|
|
3219
3226
|
author: {
|
|
3220
3227
|
name: string;
|
|
@@ -3530,7 +3537,10 @@ interface DependenciesReport {
|
|
|
3530
3537
|
'libsodium-wrappers': MaybeNull<string>;
|
|
3531
3538
|
'sodium-javascript': MaybeNull<string>;
|
|
3532
3539
|
'@stablelib/xchacha20poly1305': MaybeNull<string>;
|
|
3533
|
-
'@
|
|
3540
|
+
'@noble/ciphers': MaybeNull<string>;
|
|
3541
|
+
};
|
|
3542
|
+
DAVE: {
|
|
3543
|
+
'@snazzah/davey': MaybeNull<string>;
|
|
3534
3544
|
};
|
|
3535
3545
|
ffmpeg: FFmpegReport;
|
|
3536
3546
|
}
|