Skip to content

Commit

Permalink
Skip error checking for non int
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertAndion committed May 15, 2021
1 parent ee3035e commit e51355e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions commands/ytdltie.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ module.exports = class ytdltie {
const song_queue = this.queue.get(message.guild.id);
if(!song_queue) return message.channel.send("Nothing playing!"); // Check for empty queue first.
if(song_queue.voice_channel != voiceChannel || !voiceChannel) return message.channel.send("Please join the same voice channel as me.");
if(isNaN(amount)) return message.channel.send("Please enter a valid integer (no decimals or characters).");
if(amount <= 0) return message.channel.send("Please enter a valid skip amount. (>=1)");
amount--;
while(amount > 0){
Expand Down

0 comments on commit e51355e

Please sign in to comment.