Discord.js: Bot crashes when I'm trying to play music from YouTube

Created on 31 Jan 2018  Â·  1Comment  Â·  Source: discordjs/discord.js

I'm using discord.js v. 11.3.0 and node-opus v. 0.2.7 and Ubuntu 16.04 from MS Store.
The problem is here:

var stream = ytdl(link, { filter : 'audioonly' });
var dispatcher = connection.playStream(stream);

Also, it doesn't output an error, even with dispatcher.on('error', console.error).
I tried it with opusscript, but nothing changed.
Thanks in advance.

question (please use Discord instead)

Most helpful comment

The issue tracker is only for bug reports and enhancement suggestions. If you have a question, please ask it in the Discord server instead of opening an issue – you will get redirected there anyway.

>All comments

The issue tracker is only for bug reports and enhancement suggestions. If you have a question, please ask it in the Discord server instead of opening an issue – you will get redirected there anyway.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PassTheMayo picture PassTheMayo  Â·  3Comments

Dmitry221060 picture Dmitry221060  Â·  3Comments

Brawaru picture Brawaru  Â·  3Comments

Alipoodle picture Alipoodle  Â·  3Comments

Dmitry221060 picture Dmitry221060  Â·  3Comments