mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 17:52:55 +00:00
Update AudioPlayer.js
This commit is contained in:
parent
81619ac7be
commit
930519c494
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue