some update
This commit is contained in:
parent
1180c63200
commit
e94caca167
8 changed files with 18 additions and 1181 deletions
1183
src/Player.ts
1183
src/Player.ts
File diff suppressed because it is too large
Load diff
|
@ -1,3 +1,5 @@
|
|||
// @ts-nocheck
|
||||
|
||||
import { ExtractorModelData } from '../types/types';
|
||||
|
||||
class ExtractorModel {
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @ts-nocheck
|
||||
|
||||
import { FiltersName } from '../types/types';
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @ts-nocheck
|
||||
|
||||
import { PlayerOptions as DP_OPTIONS } from '../types/types';
|
||||
|
||||
export const PlayerEvents = {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @ts-nocheck
|
||||
|
||||
export default class PlayerError extends Error {
|
||||
constructor(msg: string, name?: string) {
|
||||
super();
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// @ts-nocheck
|
||||
|
||||
import { QueryType, TimeData } from '../types/types';
|
||||
import { FFmpeg } from 'prism-media';
|
||||
import YouTube from 'youtube-sr';
|
||||
|
|
Loading…
Reference in a new issue