Reimplement broadcast (un)subscribe events

This commit is contained in:
Amish Shah
2018-01-19 14:32:51 +00:00
parent 3d3c436e92
commit e7375aa0fd
3 changed files with 44 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
const EventEmitter = require('events');
const BroadcastAudioPlayer = require('./player/BroadcastAudioPlayer');
const DispatcherSet = require('./util/DispatcherSet');
/**
* A voice broadcast can be played across multiple voice connections for improved shared-stream efficiency.
@@ -23,7 +24,7 @@ class VoiceBroadcast extends EventEmitter {
* @type {Client}
*/
this.client = client;
this.dispatchers = new Set();
this.dispatchers = new DispatcherSet(this);
this.player = new BroadcastAudioPlayer(this);
}