some update

This commit is contained in:
Snowflake107 2021-05-01 13:44:42 +05:45
parent 1180c63200
commit e94caca167
8 changed files with 18 additions and 1181 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,3 +1,5 @@
// @ts-nocheck
import { ExtractorModelData } from '../types/types'; import { ExtractorModelData } from '../types/types';
class ExtractorModel { class ExtractorModel {

View file

@ -1,3 +1,5 @@
// @ts-nocheck
import { Message, Snowflake, VoiceConnection } from 'discord.js'; import { Message, Snowflake, VoiceConnection } from 'discord.js';
import AudioFilters from '../utils/AudioFilters'; import AudioFilters from '../utils/AudioFilters';
import { Player } from '../Player'; import { Player } from '../Player';
@ -130,6 +132,7 @@ export class Queue extends EventEmitter {
/** /**
* Currently playing track * Currently playing track
* @type {Track} * @type {Track}
* @readonly
*/ */
get playing(): Track { get playing(): Track {
return this.tracks[0]; return this.tracks[0];

View file

@ -1,3 +1,5 @@
// @ts-nocheck
import { Player } from '../Player'; import { Player } from '../Player';
import { User } from 'discord.js'; import { User } from 'discord.js';
import { TrackData } from '../types/types'; import { TrackData } from '../types/types';
@ -111,6 +113,7 @@ export class Track {
/** /**
* The queue in which this track is located * The queue in which this track is located
* @type {Queue} * @type {Queue}
* @readonly
*/ */
get queue(): Queue { get queue(): Queue {
return this.player.queues.find((q) => q.tracks.includes(this)); return this.player.queues.find((q) => q.tracks.includes(this));

View file

@ -1,3 +1,5 @@
// @ts-nocheck
import { FiltersName } from '../types/types'; import { FiltersName } from '../types/types';
/** /**

View file

@ -1,3 +1,5 @@
// @ts-nocheck
import { PlayerOptions as DP_OPTIONS } from '../types/types'; import { PlayerOptions as DP_OPTIONS } from '../types/types';
export const PlayerEvents = { export const PlayerEvents = {

View file

@ -1,3 +1,5 @@
// @ts-nocheck
export default class PlayerError extends Error { export default class PlayerError extends Error {
constructor(msg: string, name?: string) { constructor(msg: string, name?: string) {
super(); super();

View file

@ -1,3 +1,5 @@
// @ts-nocheck
import { QueryType, TimeData } from '../types/types'; import { QueryType, TimeData } from '../types/types';
import { FFmpeg } from 'prism-media'; import { FFmpeg } from 'prism-media';
import YouTube from 'youtube-sr'; import YouTube from 'youtube-sr';