mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
fix(AudioPlayer): add opus to destructured key of stream options
This fixes #2079 (VoiceConnection#playOpusStream being broken)
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user