Add playFile back to voice connection

This commit is contained in:
Amish Shah
2016-12-28 19:23:11 +00:00
parent 0a47d0e1d6
commit 4294d267e7

View File

@@ -231,8 +231,9 @@ class VoiceConnection extends EventEmitter {
* })
* .catch(console.error);
*/
playFile(file, options) {
return this.playStream(fs.createReadStream(file), options);
playFile(file, { seek = 0, volume = 1, passes = 1 } = {}) {
const options = { seek, volume, passes };
return this.player.playUnknownStream(file, options);
}
/**