mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
Add playFile back to voice connection
This commit is contained in:
@@ -231,8 +231,9 @@ class VoiceConnection extends EventEmitter {
|
|||||||
* })
|
* })
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
playFile(file, options) {
|
playFile(file, { seek = 0, volume = 1, passes = 1 } = {}) {
|
||||||
return this.playStream(fs.createReadStream(file), options);
|
const options = { seek, volume, passes };
|
||||||
|
return this.player.playUnknownStream(file, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user