Skip to content

Commit

Permalink
fix(AudioPlayer): add opus to destructured key of stream options
Browse files Browse the repository at this point in the history
This fixes #2079 (VoiceConnection#playOpusStream being broken)
  • Loading branch information
SpaceEEC committed Feb 5, 2018
1 parent 1f14758 commit 96904b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/voice/player/AudioPlayer.js
Expand Up @@ -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());
Expand Down

0 comments on commit 96904b1

Please sign in to comment.