Bot Joins Channel, но не играет песню - PullRequest
0 голосов
/ 29 сентября 2019

Мой бот discord.js присоединяется к каналу, но не воспроизводит песню, у меня установлен opus, ffmpeg и ytdl.Вот мой код:

 if (message.content.startsWith(prefix+'play')) {
      const streamOptions = { seek: 0, volume: 1 };
      let video = args[1]
      message.member.voiceChannel.join().then(connection => {
            const stream = ytdl(args[1], { filter : 'audioonly' });
            const dispatcher = connection.playStream(stream, streamOptions);
       })
        .catch(console.error);
  }

Кто-нибудь знает, что я делаю не так?

...