以下是我怀疑是错误的部分:
const dispatcher = serverQueue.connection.playStream(ytdl(song.url))
.on('end', () => {
serverQueue.songs.shift();
play(guild, serverQueue.songs[0]);
})
.on('error', error => {
console.error(error);
});
dispatcher.setVolumeLogarithmic(serverQueue.volume / 5);
}
答案 0 :(得分:0)
我有同样的问题。 解决方案在此线程中:https://github.com/amishshah/ytdl-core-discord/issues/6 您需要做的就是改变
const dispatcher = serverQueue.connection.playStream(ytdl(song.url))
收件人
const dispatcher = serverQueue.connection.playStream(ytdl(song.url, {highWaterMark: 1<<25}))