Regarding Distube v3 in DJS v13, skipping song is poping errors when there is no up next song in the queue. The code that I was using in Distube v2 is no longer compacted to v3. I have made some adjustment based on v3 update, I would like to ask if anyone have any clues on skipping song when there is no up next song in the queue.
const queue = client.distube.getQueue(message)
if (!queue) return message.channel.send(`**There is nothing playing in the queue now!**`)
try {
await queue.skip();
message.channel.send('**Skipped** :track_next:');
return;
} catch (e) {
console.log(e);
return;
}