mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
damn it hydar
This commit is contained in:
parent
d73d6a7340
commit
8a68fea9af
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
return this.playStream(fs.createReadStream(file), options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue