mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
Update AudioPlayer.js
This commit is contained in:
@@ -130,7 +130,7 @@ class AudioPlayer extends EventEmitter {
|
|||||||
|
|
||||||
playBroadcast(broadcast, { volume = 1, passes = 1 } = {}) {
|
playBroadcast(broadcast, { volume = 1, passes = 1 } = {}) {
|
||||||
const options = { volume, passes };
|
const options = { volume, passes };
|
||||||
this.destroyAllStreams();
|
this.destroyCurrentStream();
|
||||||
const dispatcher = this.createDispatcher(broadcast, options);
|
const dispatcher = this.createDispatcher(broadcast, options);
|
||||||
this.currentStream = {
|
this.currentStream = {
|
||||||
dispatcher,
|
dispatcher,
|
||||||
|
|||||||
Reference in New Issue
Block a user