From 96904b1826dfb38d4f8ba0cbf773e9d2cfd7b7cc Mon Sep 17 00:00:00 2001 From: Pascal Date: Mon, 5 Feb 2018 10:42:47 +0100 Subject: [PATCH] fix(AudioPlayer): add opus to destructured key of stream options This fixes #2079 (VoiceConnection#playOpusStream being broken) --- src/client/voice/player/AudioPlayer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/voice/player/AudioPlayer.js b/src/client/voice/player/AudioPlayer.js index 32bb070d12da..9b30c85edb56 100644 --- a/src/client/voice/player/AudioPlayer.js +++ b/src/client/voice/player/AudioPlayer.js @@ -156,8 +156,8 @@ class AudioPlayer extends EventEmitter { return dispatcher; } - createDispatcher(stream, { seek = 0, volume = 1, passes = 1 } = {}) { - const options = { seek, volume, passes }; + createDispatcher(stream, { seek = 0, volume = 1, passes = 1, opus } = {}) { + const options = { seek, volume, passes, opus }; const dispatcher = new StreamDispatcher(this, stream, options); dispatcher.on('end', () => this.destroyCurrentStream());