discord-player-play-dl/src/Player.ts

23 lines
445 B
TypeScript
Raw Normal View History

2021-04-06 17:58:46 +05:00
import { EventEmitter } from 'events';
2021-05-01 13:05:12 +05:00
import { Client } from 'discord.js';
2021-04-06 17:58:46 +05:00
import Util from './utils/Util';
2021-04-04 22:36:40 +05:00
2021-04-06 20:38:17 +05:00
export class Player extends EventEmitter {
2021-04-21 12:09:16 +05:00
public client: Client;
2021-04-09 17:59:14 +05:00
2021-05-01 13:05:12 +05:00
constructor(client: Client) {
2021-04-04 22:36:40 +05:00
super();
2021-04-06 17:58:46 +05:00
Object.defineProperty(this, 'client', {
2021-04-04 22:36:40 +05:00
value: client,
enumerable: false
});
// check FFmpeg
void Util.alertFFmpeg();
2021-04-23 23:27:51 +05:00
}
2021-05-01 12:59:42 +05:00
2021-04-04 22:44:45 +05:00
}
2021-04-06 20:38:17 +05:00
2021-05-01 13:05:12 +05:00
export default Player;