distube 5.0.2 → 5.0.3
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.mts +1489 -0
- package/dist/index.d.ts +22 -4
- package/dist/index.js +711 -828
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2463 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +39 -23
package/dist/index.d.ts
CHANGED
|
@@ -336,6 +336,7 @@ declare const ERROR_MESSAGES: {
|
|
|
336
336
|
VOICE_DIFFERENT_CLIENT: string;
|
|
337
337
|
FFMPEG_EXITED: (code: number) => string;
|
|
338
338
|
FFMPEG_NOT_INSTALLED: (path: string) => string;
|
|
339
|
+
ENCRYPTION_LIBRARIES_MISSING: string;
|
|
339
340
|
NO_QUEUE: string;
|
|
340
341
|
QUEUE_EXIST: string;
|
|
341
342
|
QUEUE_STOPPED: string;
|
|
@@ -345,6 +346,7 @@ declare const ERROR_MESSAGES: {
|
|
|
345
346
|
NO_UP_NEXT: string;
|
|
346
347
|
NO_SONG_POSITION: string;
|
|
347
348
|
NO_PLAYING_SONG: string;
|
|
349
|
+
NO_EXTRACTOR_PLUGIN: string;
|
|
348
350
|
NO_RELATED: string;
|
|
349
351
|
CANNOT_PLAY_RELATED: string;
|
|
350
352
|
UNAVAILABLE_VIDEO: string;
|
|
@@ -812,7 +814,7 @@ declare abstract class GuildIdManager<V> extends BaseManager<V> {
|
|
|
812
814
|
declare class DisTubeVoiceManager extends GuildIdManager<DisTubeVoice> {
|
|
813
815
|
/**
|
|
814
816
|
* Create a {@link DisTubeVoice} instance
|
|
815
|
-
* @param channel - A voice
|
|
817
|
+
* @param channel - A voice channel to join
|
|
816
818
|
*/
|
|
817
819
|
create(channel: VoiceBasedChannel): DisTubeVoice;
|
|
818
820
|
/**
|
|
@@ -1012,6 +1014,14 @@ declare class Queue extends DisTubeBase {
|
|
|
1012
1014
|
* @returns The guild queue
|
|
1013
1015
|
*/
|
|
1014
1016
|
addToQueue(song: Song | Song[], position?: number): Queue;
|
|
1017
|
+
/**
|
|
1018
|
+
* @returns `true` if the queue is playing
|
|
1019
|
+
*/
|
|
1020
|
+
isPlaying(): boolean;
|
|
1021
|
+
/**
|
|
1022
|
+
* @returns `true` if the queue is paused
|
|
1023
|
+
*/
|
|
1024
|
+
isPaused(): boolean;
|
|
1015
1025
|
/**
|
|
1016
1026
|
* Pause the guild stream
|
|
1017
1027
|
* @returns The guild queue
|
|
@@ -1085,7 +1095,7 @@ declare class Queue extends DisTubeBase {
|
|
|
1085
1095
|
*/
|
|
1086
1096
|
toggleAutoplay(): boolean;
|
|
1087
1097
|
/**
|
|
1088
|
-
* Play the queue
|
|
1098
|
+
* Play the first song in the queue
|
|
1089
1099
|
* @param emitPlaySong - Whether or not emit {@link Events.PLAY_SONG} event
|
|
1090
1100
|
*/
|
|
1091
1101
|
play(emitPlaySong?: boolean): Promise<void>;
|
|
@@ -1224,8 +1234,8 @@ declare function objectKeys<T>(obj: T): KeyOf<T>;
|
|
|
1224
1234
|
declare function isNsfwChannel(channel?: GuildTextBasedChannel): boolean;
|
|
1225
1235
|
type Falsy = undefined | null | false | 0 | "";
|
|
1226
1236
|
declare const isTruthy: <T>(x: T | Falsy) => x is T;
|
|
1237
|
+
declare const checkEncryptionLibraries: () => boolean;
|
|
1227
1238
|
|
|
1228
|
-
declare const version: string;
|
|
1229
1239
|
/**
|
|
1230
1240
|
* DisTube class
|
|
1231
1241
|
*/
|
|
@@ -1468,4 +1478,12 @@ declare class DisTube extends TypedEmitter<TypedDisTubeEvents> {
|
|
|
1468
1478
|
debug(message: string): void;
|
|
1469
1479
|
}
|
|
1470
1480
|
|
|
1471
|
-
|
|
1481
|
+
/**
|
|
1482
|
+
* The current version that you are currently using.
|
|
1483
|
+
*
|
|
1484
|
+
* Note to developers:
|
|
1485
|
+
* This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild
|
|
1486
|
+
*/
|
|
1487
|
+
declare const version: string;
|
|
1488
|
+
|
|
1489
|
+
export { type Awaitable, BaseManager, type CustomPlaylistOptions, DisTube, DisTubeBase, DisTubeError, type DisTubeEvents, DisTubeHandler, type DisTubeOptions, type DisTubePlugin, DisTubeStream, DisTubeVoice, type DisTubeVoiceEvents, DisTubeVoiceManager, Events, ExtractorPlugin, type FFmpegArg, type FFmpegArgs, type FFmpegOptions, type Falsy, type Filter, FilterManager, type FilterResolvable, type Filters, GuildIdManager, type GuildIdResolvable, InfoExtractorPlugin, type KeyOf, Options, type PlayHandlerOptions, type PlayOptions, PlayableExtractorPlugin, Playlist, type PlaylistInfo, Plugin, PluginType, Queue, QueueManager, type RelatedSong, RepeatMode, type ResolveOptions, type ResolvePlaylistOptions, Song, type SongInfo, type StreamOptions, TaskQueue, type TypedDisTubeEvents, checkEncryptionLibraries, checkFFmpeg, checkIntents, checkInvalidKey, DisTube as default, defaultFilters, defaultOptions, formatDuration, isClientInstance, isGuildInstance, isMemberInstance, isMessageInstance, isNsfwChannel, isObject, isSnowflake, isSupportedVoiceChannel, isTextChannelInstance, isTruthy, isURL, isVoiceChannelEmpty, objectKeys, resolveGuildId, version };
|