1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-10 05:10:17 +00:00

Update play.js

This commit is contained in:
MatteZ02 2019-10-20 21:33:28 +03:00
parent 6c9ce70873
commit b6f7ddbbf9

View File

@ -7,7 +7,7 @@ module.exports = async function (guild, song, client, message, seek) {
client.queue.delete(guild.id);
return;
}
const dispatcher = message.guild.voiceConnection.playStream
const dispatcher = message.guild.voiceConnection
.playStream(ytdl(song.url, { filter: "audio", highWaterMark: 1 << 25 }), { seek: seek, bitrate: 1024, passes: 10, volume: 1 })
.on("end", reason => {
if (reason === "Stream is not generating quickly enough.") {