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';
|
import { ExtractorModelData } from '../types/types';
|
||||||
|
|
||||||
class ExtractorModel {
|
class ExtractorModel {
|
||||||
|
|
|
@ -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];
|
||||||
|
|
|
@ -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));
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// @ts-nocheck
|
||||||
|
|
||||||
import { FiltersName } from '../types/types';
|
import { FiltersName } from '../types/types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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';
|
||||||
|
|
Loading…
Reference in a new issue