mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 17:52:55 +00:00
oh no wait i was right the first time
This commit is contained in:
parent
8a68fea9af
commit
823a339c25
1 changed files with 1 additions and 2 deletions
|
|
@ -93,8 +93,7 @@ class VoiceConnection extends EventEmitter {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
playFile(file, { seek = 0, volume = 1, passes = 1 } = {}) {
|
playFile(file, options) {
|
||||||
const options = { seek, volume, passes };
|
|
||||||
return this.playStream(fs.createReadStream(file), options);
|
return this.playStream(fs.createReadStream(file), options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue