mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
src: Make broadcasts work again (#3190)
This commit is contained in:
@@ -74,6 +74,7 @@ class VoiceBroadcast extends EventEmitter {
|
|||||||
add(dispatcher) {
|
add(dispatcher) {
|
||||||
const index = this.dispatchers.indexOf(dispatcher);
|
const index = this.dispatchers.indexOf(dispatcher);
|
||||||
if (index === -1) {
|
if (index === -1) {
|
||||||
|
this.dispatchers.push(dispatcher);
|
||||||
/**
|
/**
|
||||||
* Emitted whenever a stream dispatcher subscribes to the broadcast.
|
* Emitted whenever a stream dispatcher subscribes to the broadcast.
|
||||||
* @event VoiceBroadcast#subscribe
|
* @event VoiceBroadcast#subscribe
|
||||||
|
|||||||
Reference in New Issue
Block a user