discord-player 6.6.8-dev.1 → 6.6.8-dev.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.ts +3 -16
- package/dist/index.js +10 -7
- package/package.json +1 -1
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;
|
|
@@ -1983,7 +1970,7 @@ declare class Context<T> {
|
|
|
1983
1970
|
/**
|
|
1984
1971
|
* Run a function within the context of this provider
|
|
1985
1972
|
*/
|
|
1986
|
-
provide<R = unsafe>(
|
|
1973
|
+
provide<R = unsafe>(value: T, receiver: ContextReceiver<R>): R;
|
|
1987
1974
|
}
|
|
1988
1975
|
/**
|
|
1989
1976
|
* Create a new context. The default value is optional.
|
|
@@ -1997,7 +1984,7 @@ declare class Context<T> {
|
|
|
1997
1984
|
* };
|
|
1998
1985
|
*
|
|
1999
1986
|
* // provide the context value to the receiver
|
|
2000
|
-
* context.provide(
|
|
1987
|
+
* context.provide(user, handler);
|
|
2001
1988
|
*
|
|
2002
1989
|
* function handler() {
|
|
2003
1990
|
* // get the context value
|
|
@@ -3018,4 +3005,4 @@ declare class QueryResolver {
|
|
|
3018
3005
|
|
|
3019
3006
|
declare const version: string;
|
|
3020
3007
|
|
|
3021
|
-
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 };
|