mirror of
https://github.com/danbulant/discord.js
synced 2026-06-06 00:02:52 +00:00
fix(AudioPlayer): add opus to destructured key of stream options
This fixes #2079 (VoiceConnection#playOpusStream being broken)
This commit is contained in:
parent
1f14758e0c
commit
96904b1826
1 changed files with 2 additions and 2 deletions
|
|
@ -156,8 +156,8 @@ class AudioPlayer extends EventEmitter {
|
||||||
return dispatcher;
|
return dispatcher;
|
||||||
}
|
}
|
||||||
|
|
||||||
createDispatcher(stream, { seek = 0, volume = 1, passes = 1 } = {}) {
|
createDispatcher(stream, { seek = 0, volume = 1, passes = 1, opus } = {}) {
|
||||||
const options = { seek, volume, passes };
|
const options = { seek, volume, passes, opus };
|
||||||
|
|
||||||
const dispatcher = new StreamDispatcher(this, stream, options);
|
const dispatcher = new StreamDispatcher(this, stream, options);
|
||||||
dispatcher.on('end', () => this.destroyCurrentStream());
|
dispatcher.on('end', () => this.destroyCurrentStream());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue