mirror of
https://github.com/musix-org/musix-oss
synced 2026-10-23 03:45:01 +00:00
updated seek
This commit is contained in:
1 parent
4cc7e8e56a
commit
337e2e0296
2 files changed
+8
-5
No files matched your search
@@ -10,7 +10,7 @@ module.exports = async function (guild, song, client, seek, play) {
|
||||
return;
|
||||
}
|
||||
const dispatcher = serverQueue.connection
|
||||
.play(await ytdl(song.url, { filter: "audio", highWaterMark: 1 << 25, volume: false }), { seek: seek, bitrate: 1024, passes: 10, volume: 1, bassboost: serverQueue.bass })
|
||||
.play(await ytdl(song.url, { filter: "audio", highWaterMark: 1 << 25, volume: false, begin: seek }), { seek: 0, bitrate: 1024, passes: 10, volume: 1, bassboost: serverQueue.bass })
|
||||
.on("finish", () => {
|
||||
client.dispatcher.finish(client, serverQueue.endReason, guild);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user