Skip to content

Commit

Permalink
Can skip if autoplay is on
Browse files Browse the repository at this point in the history
  • Loading branch information
skick1234 authored Jul 19, 2020
1 parent 3efa2e6 commit cbb922f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DisTube.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ class DisTube extends EventEmitter {
skip(message) {
let queue = this.getQueue(message);
if (!queue) throw new Error("NotPlaying");
if (queue.songs <= 1) throw new Error("NoSong");
if (queue.songs <= 1 && !queue.autoplay) throw new Error("NoSong");
queue.skipped = true;
queue.dispatcher.end();
return queue;
Expand Down

0 comments on commit cbb922f

Please sign in to comment.