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';
class ExtractorModel {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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