I was trying to play an audio file from my assets, but suddently, it didn’t work, and i don’t know why.
Can you guys help me?
My code:
const channel = message.member.voice.channel;
channel
.join()
.then(connection => {
const dispatcher = connection.play(
“https://cdn.glitch.com/3881198f-19f3-43bc-ae49-
7e646afaaf18%2FNever%20gonna%20give%20you%20up.mp3?v=1585737453477”
);
dispatcher.on(“start”, start => {
console.log(“playing!”);
});
dispatcher.on(“end”, end => {
channel.leave();
});
})
.catch(err => console.log(err));