Skip to content

Commit

Permalink
Fix accidental remove of tsc-alias config
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomato6966 committed Sep 16, 2024
1 parent 6e8f1de commit 5668da0
Show file tree
Hide file tree
Showing 54 changed files with 240 additions and 236 deletions.
32 changes: 16 additions & 16 deletions dist/cjs/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
export * from "./structures/LavalinkManager";
export * from "./structures/Filters";
export * from "./structures/LavalinkManagerStatics";
export * from "./structures/Node";
export * from "./structures/NodeManager";
export * from "./structures/Player";
export * from "./structures/Queue";
export * from "./structures/Utils";
export * from "./structures/Types/Track";
export * from "./structures/Types/Utils";
export * from "./structures/Types/Filters";
export * from "./structures/Types/Player";
export * from "./structures/Types/Queue";
export * from "./structures/Types/Node";
export * from "./structures/Constants";
export * from "./structures/Types/Manager";
export * from "./structures/LavalinkManager.js";
export * from "./structures/Filters.js";
export * from "./structures/LavalinkManagerStatics.js";
export * from "./structures/Node.js";
export * from "./structures/NodeManager.js";
export * from "./structures/Player.js";
export * from "./structures/Queue.js";
export * from "./structures/Utils.js";
export * from "./structures/Types/Track.js";
export * from "./structures/Types/Utils.js";
export * from "./structures/Types/Filters.js";
export * from "./structures/Types/Player.js";
export * from "./structures/Types/Queue.js";
export * from "./structures/Types/Node.js";
export * from "./structures/Constants.js";
export * from "./structures/Types/Manager.js";
32 changes: 16 additions & 16 deletions dist/cjs/index.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./structures/LavalinkManager"), exports);
tslib_1.__exportStar(require("./structures/Filters"), exports);
tslib_1.__exportStar(require("./structures/LavalinkManagerStatics"), exports);
tslib_1.__exportStar(require("./structures/Node"), exports);
tslib_1.__exportStar(require("./structures/NodeManager"), exports);
tslib_1.__exportStar(require("./structures/Player"), exports);
tslib_1.__exportStar(require("./structures/Queue"), exports);
tslib_1.__exportStar(require("./structures/Utils"), exports);
tslib_1.__exportStar(require("./structures/Types/Track"), exports);
tslib_1.__exportStar(require("./structures/Types/Utils"), exports);
tslib_1.__exportStar(require("./structures/Types/Filters"), exports);
tslib_1.__exportStar(require("./structures/Types/Player"), exports);
tslib_1.__exportStar(require("./structures/Types/Queue"), exports);
tslib_1.__exportStar(require("./structures/Types/Node"), exports);
tslib_1.__exportStar(require("./structures/Constants"), exports);
tslib_1.__exportStar(require("./structures/Types/Manager"), exports);
tslib_1.__exportStar(require("./structures/LavalinkManager.js"), exports);
tslib_1.__exportStar(require("./structures/Filters.js"), exports);
tslib_1.__exportStar(require("./structures/LavalinkManagerStatics.js"), exports);
tslib_1.__exportStar(require("./structures/Node.js"), exports);
tslib_1.__exportStar(require("./structures/NodeManager.js"), exports);
tslib_1.__exportStar(require("./structures/Player.js"), exports);
tslib_1.__exportStar(require("./structures/Queue.js"), exports);
tslib_1.__exportStar(require("./structures/Utils.js"), exports);
tslib_1.__exportStar(require("./structures/Types/Track.js"), exports);
tslib_1.__exportStar(require("./structures/Types/Utils.js"), exports);
tslib_1.__exportStar(require("./structures/Types/Filters.js"), exports);
tslib_1.__exportStar(require("./structures/Types/Player.js"), exports);
tslib_1.__exportStar(require("./structures/Types/Queue.js"), exports);
tslib_1.__exportStar(require("./structures/Types/Node.js"), exports);
tslib_1.__exportStar(require("./structures/Constants.js"), exports);
tslib_1.__exportStar(require("./structures/Types/Manager.js"), exports);
2 changes: 1 addition & 1 deletion dist/cjs/structures/Constants.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AudioOutputs, ChannelMixFilter, EQBand } from "./Types/Filters";
import type { AudioOutputs, ChannelMixFilter, EQBand } from "./Types/Filters.js";
export declare enum DebugEvents {
SetSponsorBlock = "SetSponsorBlock",
DeleteSponsorBlock = "DeleteSponsorBlock",
Expand Down
4 changes: 2 additions & 2 deletions dist/cjs/structures/CustomSearches/BandCampSearch.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import type { Player } from "../Player";
import type { UnresolvedSearchResult } from "../Types/Utils";
import type { Player } from "../Player.js";
import type { UnresolvedSearchResult } from "../Types/Utils.js";
export declare const bandCampSearch: (player: Player, query: string, requestUser: unknown) => Promise<UnresolvedSearchResult>;
4 changes: 2 additions & 2 deletions dist/cjs/structures/Filters.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Player } from "./Player";
import type { AudioOutputs, EQBand, FilterData, PlayerFilters, TimescaleFilter } from "./Types/Filters";
import type { Player } from "./Player.js";
import type { AudioOutputs, EQBand, FilterData, PlayerFilters, TimescaleFilter } from "./Types/Filters.js";
/**
* The FilterManager for each player
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/cjs/structures/Filters.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FilterManager = void 0;
const Constants_1 = require("./Constants");
const Constants_1 = require("./Constants.js");
/**
* The FilterManager for each player
*/
Expand Down
12 changes: 6 additions & 6 deletions dist/cjs/structures/LavalinkManager.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/// <reference types="node" />
import { EventEmitter } from "events";
import { NodeManager } from "./NodeManager";
import { Player } from "./Player";
import { ManagerUtils, MiniMap } from "./Utils";
import type { BotClientOptions, LavalinkManagerEvents, ManagerOptions } from "./Types/Manager";
import type { PlayerOptions } from "./Types/Player";
import type { ChannelDeletePacket, VoicePacket, VoiceServer, VoiceState } from "./Types/Utils";
import { NodeManager } from "./NodeManager.js";
import { Player } from "./Player.js";
import { ManagerUtils, MiniMap } from "./Utils.js";
import type { BotClientOptions, LavalinkManagerEvents, ManagerOptions } from "./Types/Manager.js";
import type { PlayerOptions } from "./Types/Player.js";
import type { ChannelDeletePacket, VoicePacket, VoiceServer, VoiceState } from "./Types/Utils.js";
export declare class LavalinkManager extends EventEmitter {
/**
* Emit an event
Expand Down
10 changes: 5 additions & 5 deletions dist/cjs/structures/LavalinkManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
Object.defineProperty(exports, "__esModule", { value: true });
exports.LavalinkManager = void 0;
const events_1 = require("events");
const Constants_1 = require("./Constants");
const NodeManager_1 = require("./NodeManager");
const Player_1 = require("./Player");
const Queue_1 = require("./Queue");
const Utils_1 = require("./Utils");
const Constants_1 = require("./Constants.js");
const NodeManager_1 = require("./NodeManager.js");
const Player_1 = require("./Player.js");
const Queue_1 = require("./Queue.js");
const Utils_1 = require("./Utils.js");
class LavalinkManager extends events_1.EventEmitter {
/**
* Emit an event
Expand Down
2 changes: 1 addition & 1 deletion dist/cjs/structures/LavalinkManagerStatics.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ClientCustomSearchPlatformUtils, LavalinkSearchPlatform, SearchPlatform, SourcesRegex } from "./Types/Utils";
import type { ClientCustomSearchPlatformUtils, LavalinkSearchPlatform, SearchPlatform, SourcesRegex } from "./Types/Utils.js";
/** Default Sources Record, to allow source parsing with multiple inputs. */
export declare const DefaultSources: Record<SearchPlatform, LavalinkSearchPlatform | ClientCustomSearchPlatformUtils>;
/** Lavalink Plugins definiton */
Expand Down
12 changes: 6 additions & 6 deletions dist/cjs/structures/Node.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { Player } from "./Player";
import type { DestroyReasonsType } from "./Types/Player";
import type { Track } from "./Types/Track";
import type { Base64, InvalidLavalinkRestRequest, LavalinkPlayer, LavaSearchQuery, LavaSearchResponse, PlayerUpdateInfo, RoutePlanner, SearchQuery, SearchResult, Session } from "./Types/Utils";
import type { NodeManager } from "./NodeManager";
import type { BaseNodeStats, LavalinkInfo, LavalinkNodeOptions, ModifyRequest, NodeStats, SponsorBlockSegment } from "./Types/Node";
import type { Player } from "./Player.js";
import type { DestroyReasonsType } from "./Types/Player.js";
import type { Track } from "./Types/Track.js";
import type { Base64, InvalidLavalinkRestRequest, LavalinkPlayer, LavaSearchQuery, LavaSearchResponse, PlayerUpdateInfo, RoutePlanner, SearchQuery, SearchResult, Session } from "./Types/Utils.js";
import type { NodeManager } from "./NodeManager.js";
import type { BaseNodeStats, LavalinkInfo, LavalinkNodeOptions, ModifyRequest, NodeStats, SponsorBlockSegment } from "./Types/Node.js";
/**
* Lavalink Node creator class
*/
Expand Down
4 changes: 2 additions & 2 deletions dist/cjs/structures/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ exports.LavalinkNode = void 0;
const tslib_1 = require("tslib");
const path_1 = require("path");
const ws_1 = tslib_1.__importDefault(require("ws"));
const Constants_1 = require("./Constants");
const Utils_1 = require("./Utils");
const Constants_1 = require("./Constants.js");
const Utils_1 = require("./Utils.js");
/**
* Lavalink Node creator class
*/
Expand Down
8 changes: 4 additions & 4 deletions dist/cjs/structures/NodeManager.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/// <reference types="node" />
import { EventEmitter } from "events";
import { LavalinkNode } from "./Node";
import { MiniMap } from "./Utils";
import type { LavalinkNodeIdentifier, LavalinkNodeOptions, NodeManagerEvents } from "./Types/Node";
import type { LavalinkManager } from "./LavalinkManager";
import { LavalinkNode } from "./Node.js";
import { MiniMap } from "./Utils.js";
import type { LavalinkNodeIdentifier, LavalinkNodeOptions, NodeManagerEvents } from "./Types/Node.js";
import type { LavalinkManager } from "./LavalinkManager.js";
export declare class NodeManager extends EventEmitter {
/**
* Emit an event
Expand Down
6 changes: 3 additions & 3 deletions dist/cjs/structures/NodeManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
Object.defineProperty(exports, "__esModule", { value: true });
exports.NodeManager = void 0;
const events_1 = require("events");
const Constants_1 = require("./Constants");
const Node_1 = require("./Node");
const Utils_1 = require("./Utils");
const Constants_1 = require("./Constants.js");
const Node_1 = require("./Node.js");
const Utils_1 = require("./Utils.js");
class NodeManager extends events_1.EventEmitter {
/**
* Emit an event
Expand Down
20 changes: 10 additions & 10 deletions dist/cjs/structures/Player.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { FilterManager } from "./Filters";
import { Queue } from "./Queue";
import type { DestroyReasons } from "./Constants";
import type { LavalinkNode } from "./Node";
import type { SponsorBlockSegment } from "./Types/Node";
import type { PlayerJson, PlayerOptions, PlayOptions, RepeatMode } from "./Types/Player";
import type { LavalinkManager } from "./LavalinkManager";
import type { LavalinkPlayerVoiceOptions, LavaSearchQuery, SearchQuery } from "./Types/Utils";
import { FilterManager } from "./Filters.js";
import { Queue } from "./Queue.js";
import type { DestroyReasons } from "./Constants.js";
import type { LavalinkNode } from "./Node.js";
import type { SponsorBlockSegment } from "./Types/Node.js";
import type { PlayerJson, PlayerOptions, PlayOptions, RepeatMode } from "./Types/Player.js";
import type { LavalinkManager } from "./LavalinkManager.js";
import type { LavalinkPlayerVoiceOptions, LavaSearchQuery, SearchQuery } from "./Types/Utils.js";
export declare class Player {
/** Filter Manager per player */
filterManager: FilterManager;
Expand Down Expand Up @@ -96,7 +96,7 @@ export declare class Player {
* @param throwOnEmpty If an error should be thrown if no track is found
* @returns The search result
*/
lavaSearch(query: LavaSearchQuery, requestUser: unknown, throwOnEmpty?: boolean): Promise<import("./Types/Utils").SearchResult | import("./Types/Utils").LavaSearchResponse>;
lavaSearch(query: LavaSearchQuery, requestUser: unknown, throwOnEmpty?: boolean): Promise<import("./Types/Utils.js").SearchResult | import("./Types/Utils.js").LavaSearchResponse>;
/**
* Set the SponsorBlock
* @param segments The segments to set
Expand All @@ -115,7 +115,7 @@ export declare class Player {
* @param query Query for your data
* @param requestUser
*/
search(query: SearchQuery, requestUser: unknown, throwOnEmpty?: boolean): Promise<import("./Types/Utils").UnresolvedSearchResult | import("./Types/Utils").SearchResult>;
search(query: SearchQuery, requestUser: unknown, throwOnEmpty?: boolean): Promise<import("./Types/Utils.js").UnresolvedSearchResult | import("./Types/Utils.js").SearchResult>;
/**
* Pause the player
*/
Expand Down
10 changes: 5 additions & 5 deletions dist/cjs/structures/Player.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Player = void 0;
const Constants_1 = require("./Constants");
const BandCampSearch_1 = require("./CustomSearches/BandCampSearch");
const Filters_1 = require("./Filters");
const Queue_1 = require("./Queue");
const Utils_1 = require("./Utils");
const Constants_1 = require("./Constants.js");
const BandCampSearch_1 = require("./CustomSearches/BandCampSearch.js");
const Filters_1 = require("./Filters.js");
const Queue_1 = require("./Queue.js");
const Utils_1 = require("./Utils.js");
class Player {
/** Filter Manager per player */
filterManager;
Expand Down
6 changes: 3 additions & 3 deletions dist/cjs/structures/Queue.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { MiniMap } from "./Utils";
import type { Track, UnresolvedTrack } from "./Types/Track";
import type { ManagerQueueOptions, QueueStoreManager, StoredQueue } from "./Types/Queue";
import { MiniMap } from "./Utils.js";
import type { Track, UnresolvedTrack } from "./Types/Track.js";
import type { ManagerQueueOptions, QueueStoreManager, StoredQueue } from "./Types/Queue.js";
export declare class QueueSaver {
/**
* The queue store manager
Expand Down
2 changes: 1 addition & 1 deletion dist/cjs/structures/Queue.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Queue = exports.DefaultQueueStore = exports.QueueSaver = void 0;
const Utils_1 = require("./Utils");
const Utils_1 = require("./Utils.js");
class QueueSaver {
/**
* The queue store manager
Expand Down
2 changes: 1 addition & 1 deletion dist/cjs/structures/Types/Filters.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FloatNumber, IntegerNumber } from "./Utils";
import type { FloatNumber, IntegerNumber } from "./Utils.js";
/** The Audio Outputs type */
export type AudioOutputs = "mono" | "stereo" | "left" | "right";
/** The "active" / "disabled" Player Filters */
Expand Down
14 changes: 7 additions & 7 deletions dist/cjs/structures/Types/Manager.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { DebugEvents } from "../Constants";
import type { Player } from "../Player";
import type { LavalinkNodeOptions } from "./Node";
import type { DestroyReasonsType, PlayerJson } from "./Player";
import type { ManagerQueueOptions } from "./Queue";
import type { Track, UnresolvedTrack } from "./Track";
import type { GuildShardPayload, SearchPlatform, SponsorBlockChaptersLoaded, SponsorBlockChapterStarted, SponsorBlockSegmentSkipped, SponsorBlockSegmentsLoaded, TrackExceptionEvent, TrackEndEvent, TrackStuckEvent, WebSocketClosedEvent, TrackStartEvent } from "./Utils";
import type { DebugEvents } from "../Constants.js";
import type { Player } from "../Player.js";
import type { LavalinkNodeOptions } from "./Node.js";
import type { DestroyReasonsType, PlayerJson } from "./Player.js";
import type { ManagerQueueOptions } from "./Queue.js";
import type { Track, UnresolvedTrack } from "./Track.js";
import type { GuildShardPayload, SearchPlatform, SponsorBlockChaptersLoaded, SponsorBlockChapterStarted, SponsorBlockSegmentSkipped, SponsorBlockSegmentsLoaded, TrackExceptionEvent, TrackEndEvent, TrackStuckEvent, WebSocketClosedEvent, TrackStartEvent } from "./Utils.js";
/**
* The events from the lavalink Manager
*/
Expand Down
6 changes: 3 additions & 3 deletions dist/cjs/structures/Types/Node.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/// <reference types="node" />
import type internal from "stream";
import type { LavalinkNode } from "../Node";
import type { DestroyReasonsType } from "./Player";
import type { InvalidLavalinkRestRequest, LavalinkPlayer } from "./Utils";
import type { LavalinkNode } from "../Node.js";
import type { DestroyReasonsType } from "./Player.js";
import type { InvalidLavalinkRestRequest, LavalinkPlayer } from "./Utils.js";
/** Ability to manipulate fetch requests */
export type ModifyRequest = (options: RequestInit & {
path: string;
Expand Down
10 changes: 5 additions & 5 deletions dist/cjs/structures/Types/Player.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { DestroyReasons } from "../Constants";
import type { LavalinkNode } from "../Node";
import type { EQBand, FilterData, LavalinkFilterData } from "./Filters";
import type { Track, UnresolvedTrack } from "./Track";
import type { Base64, LavalinkPlayerVoiceOptions } from "./Utils";
import type { DestroyReasons } from "../Constants.js";
import type { LavalinkNode } from "../Node.js";
import type { EQBand, FilterData, LavalinkFilterData } from "./Filters.js";
import type { Track, UnresolvedTrack } from "./Track.js";
import type { Base64, LavalinkPlayerVoiceOptions } from "./Utils.js";
export type DestroyReasonsType = keyof typeof DestroyReasons | string;
export interface PlayerJson {
/** Guild Id where the player was playing in */
Expand Down
2 changes: 1 addition & 1 deletion dist/cjs/structures/Types/Queue.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Track, UnresolvedTrack } from "./Track";
import type { Track, UnresolvedTrack } from "./Track.js";
export interface StoredQueue {
current: Track | null;
previous: Track[];
Expand Down
6 changes: 3 additions & 3 deletions dist/cjs/structures/Types/Track.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Player } from "../Player";
import type { anyObject } from "./Player";
import type { Base64 } from "./Utils";
import type { Player } from "../Player.js";
import type { anyObject } from "./Player.js";
import type { Base64 } from "./Utils.js";
/** Sourcenames provided by lavalink server */
export type LavalinkSourceNames = "youtube" | "youtubemusic" | "soundcloud" | "bandcamp" | "twitch";
/** Source Names provided by lava src plugin */
Expand Down
10 changes: 5 additions & 5 deletions dist/cjs/structures/Types/Utils.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { MiniMap } from "../Utils";
import type { LavalinkFilterData } from "./Filters";
import type { NodeStats } from "./Node";
import type { LavalinkPlayOptions } from "./Player";
import type { LavalinkTrack, PluginInfo, Track, UnresolvedTrack } from "./Track";
import type { MiniMap } from "../Utils.js";
import type { LavalinkFilterData } from "./Filters.js";
import type { NodeStats } from "./Node.js";
import type { LavalinkPlayOptions } from "./Player.js";
import type { LavalinkTrack, PluginInfo, Track, UnresolvedTrack } from "./Track.js";
/** Helper for generating Opaque types. */
export type Opaque<T, K> = T & {
__opaque__: K;
Expand Down
12 changes: 6 additions & 6 deletions dist/cjs/structures/Utils.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { LavalinkNodeOptions } from "./Types/Node";
import type { LavalinkSearchPlatform, LavaSearchQuery, MiniMapConstructor, SearchPlatform, SearchQuery } from "./Types/Utils";
import type { LavalinkManager } from "./LavalinkManager";
import type { LavalinkNode } from "./Node";
import type { Player } from "./Player";
import type { LavalinkTrack, Track, UnresolvedQuery, UnresolvedTrack } from "./Types/Track";
import type { LavalinkNodeOptions } from "./Types/Node.js";
import type { LavalinkSearchPlatform, LavaSearchQuery, MiniMapConstructor, SearchPlatform, SearchQuery } from "./Types/Utils.js";
import type { LavalinkManager } from "./LavalinkManager.js";
import type { LavalinkNode } from "./Node.js";
import type { Player } from "./Player.js";
import type { LavalinkTrack, Track, UnresolvedQuery, UnresolvedTrack } from "./Types/Track.js";
export declare const TrackSymbol: unique symbol;
export declare const UnresolvedTrackSymbol: unique symbol;
export declare const QueueSymbol: unique symbol;
Expand Down
4 changes: 2 additions & 2 deletions dist/cjs/structures/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports.queueTrackEnd = exports.MiniMap = exports.ManagerUtils = exports.parseLavalinkConnUrl = exports.NodeSymbol = exports.QueueSymbol = exports.UnresolvedTrackSymbol = exports.TrackSymbol = void 0;
const node_url_1 = require("node:url");
const types_1 = require("node:util/types");
const Constants_1 = require("./Constants");
const LavalinkManagerStatics_1 = require("./LavalinkManagerStatics");
const Constants_1 = require("./Constants.js");
const LavalinkManagerStatics_1 = require("./LavalinkManagerStatics.js");
exports.TrackSymbol = Symbol("LC-Track");
exports.UnresolvedTrackSymbol = Symbol("LC-Track-Unresolved");
exports.QueueSymbol = Symbol("LC-Queue");
Expand Down
Loading

0 comments on commit 5668da0

Please sign in to comment.