-
Please describe your problem in as much detail as possible: An error message appears "DisTubeError [NO_UP_NEXT]: There is no up next song" when I skip I understand the error message, but how can I avoid the crash? Because I don't want the bot to stop working every time someone skip the music. Further information:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Check if there is autoplay disabled and no songs in the queue except current song. if (!Queue.autoplay && Queue.songs.length <= 1) return; |
Beta Was this translation helpful? Give feedback.
-
ty |
Beta Was this translation helpful? Give feedback.
-
And for previous song ? DisTubeError [NO_PREVIOUS]: There is no previous song in this queue |
Beta Was this translation helpful? Give feedback.
-
if (Queue.previousSongs.length < 1) return; |
Beta Was this translation helpful? Give feedback.
Check if there is autoplay disabled and no songs in the queue except current song.