From 8a68fea9af2db1d7b1ca93938ab22e7c8ab45aa4 Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Mon, 24 Oct 2016 22:27:03 +0100 Subject: [PATCH] damn it hydar --- src/client/voice/VoiceConnection.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/voice/VoiceConnection.js b/src/client/voice/VoiceConnection.js index a367718d3..7c7b7a269 100644 --- a/src/client/voice/VoiceConnection.js +++ b/src/client/voice/VoiceConnection.js @@ -93,7 +93,8 @@ class VoiceConnection extends EventEmitter { }); } - playFile(file, options) { + playFile(file, { seek = 0, volume = 1, passes = 1 } = {}) { + const options = { seek, volume, passes }; return this.playStream(fs.createReadStream(file), options); }