discord-player 6.6.8-dev.2 → 6.6.8
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 +2 -16
- package/dist/index.js +12 -13
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1951,19 +1951,6 @@ type unsafe = any;
|
|
|
1951
1951
|
* The receiver function that will be called when the context is provided
|
|
1952
1952
|
*/
|
|
1953
1953
|
type ContextReceiver<R> = () => R;
|
|
1954
|
-
/**
|
|
1955
|
-
* The props for the context provider
|
|
1956
|
-
*/
|
|
1957
|
-
interface ContextProviderProps<T, R> {
|
|
1958
|
-
/**
|
|
1959
|
-
* The value to provide
|
|
1960
|
-
*/
|
|
1961
|
-
value: T;
|
|
1962
|
-
/**
|
|
1963
|
-
* The receiver function that will be called when the context is provided
|
|
1964
|
-
*/
|
|
1965
|
-
receiver: ContextReceiver<R>;
|
|
1966
|
-
}
|
|
1967
1954
|
declare class Context<T> {
|
|
1968
1955
|
private defaultValue?;
|
|
1969
1956
|
private storage;
|
|
@@ -1984,7 +1971,6 @@ declare class Context<T> {
|
|
|
1984
1971
|
* Run a function within the context of this provider
|
|
1985
1972
|
*/
|
|
1986
1973
|
provide<R = unsafe>(value: T, receiver: ContextReceiver<R>): R;
|
|
1987
|
-
provide<R = unsafe>({ receiver, value }: ContextProviderProps<T, R>): R;
|
|
1988
1974
|
}
|
|
1989
1975
|
/**
|
|
1990
1976
|
* Create a new context. The default value is optional.
|
|
@@ -1998,7 +1984,7 @@ declare class Context<T> {
|
|
|
1998
1984
|
* };
|
|
1999
1985
|
*
|
|
2000
1986
|
* // provide the context value to the receiver
|
|
2001
|
-
* context.provide(
|
|
1987
|
+
* context.provide(user, handler);
|
|
2002
1988
|
*
|
|
2003
1989
|
* function handler() {
|
|
2004
1990
|
* // get the context value
|
|
@@ -3019,4 +3005,4 @@ declare class QueryResolver {
|
|
|
3019
3005
|
|
|
3020
3006
|
declare const version: string;
|
|
3021
3007
|
|
|
3022
|
-
export { AFilterGraph, AsyncQueue, AsyncQueueAcquisitionOptions, AsyncQueueEntry, AsyncQueueExceptionHandler, AudioFilters, BaseExtractor, Context,
|
|
3008
|
+
export { AFilterGraph, AsyncQueue, AsyncQueueAcquisitionOptions, AsyncQueueEntry, AsyncQueueExceptionHandler, AudioFilters, BaseExtractor, Context, ContextReceiver, CreateStreamOps, DiscordPlayerQueryResultCache, Encodable, EqualizerConfigurationPreset, ExtractorExecutionContext, ExtractorExecutionEvents, ExtractorExecutionFN, ExtractorExecutionResult, ExtractorInfo, ExtractorLoaderOptionDict, ExtractorResolvable, ExtractorSearchContext, ExtractorStreamable, FFMPEG_ARGS_PIPED, FFMPEG_ARGS_STRING, FFMPEG_SRATE_REGEX, FFmpegFilterer, FFmpegStreamOptions, FilterGraph, FiltersName, GuildNodeCreateOptions, GuildNodeInit, GuildNodeManager, GuildQueue, GuildQueueAFiltersCache, GuildQueueAudioFilters, GuildQueueEvent, GuildQueueEvents, GuildQueueHistory, GuildQueuePlayerNode, GuildQueueStatistics, GuildQueueStatisticsMetadata, HookDeclaration, HookDeclarationContext, IPBlock, IPRotationConfig, IPRotator, MetadataDispatch, NextFunction, NodeResolvable, OnAfterCreateStreamHandler, OnBeforeCreateStreamHandler, PlayOptions, Player, PlayerEvent, PlayerEvents, PlayerEventsEmitter, PlayerInitOptions, PlayerNodeInitializationResult, PlayerNodeInitializerOptions, PlayerProgressbarOptions, PlayerSearchResult, PlayerTimestamp, PlayerTriggeredReason, Playlist, PlaylistInitData, PlaylistJSON, PostProcessedResult, QueryCache, QueryCacheOptions, QueryCacheProvider, QueryCacheResolverContext, QueryExtractorSearch, QueryResolver, QueryType, QueueFilters, QueueRepeatMode, RawTrackData, RawTrackInit, ResolvedQuery, ResourcePlayOptions, SearchOptions, SearchQueryType, SearchResult, SearchResultData, SerializedPlaylist, SerializedTrack, SerializedType, SetterFN$1 as SetterFN, SkipOptions, StreamConfig, StreamDispatcher, TimeData, TimelineDispatcherOptions, Track, TrackJSON, TrackLike, TrackResolvable, TrackSkipReason, TrackSource, TypeUtil, Util, VALIDATE_QUEUE_CAP, VoiceConnectConfig, VoiceEvents, VoiceReceiverNode, VoiceReceiverOptions, VoiceStateHandler, VoiceUtils, WithMetadata, createContext, createFFmpegStream, createHook, decode, deserialize, encode, onAfterCreateStream, onBeforeCreateStream, serialize, tryIntoThumbnailString, useContext, useHistory, useMainPlayer, useMasterPlayer, useMetadata, usePlayer, useQueue, useTimeline, useVolume, version };
|