From e51355e786bb4d01a4c2edff77bc2de4b4ec3339 Mon Sep 17 00:00:00 2001 From: Robert Date: Fri, 14 May 2021 22:14:42 -0400 Subject: [PATCH] Skip error checking for non int --- commands/ytdltie.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/ytdltie.js b/commands/ytdltie.js index b3ec44b..1258f4f 100644 --- a/commands/ytdltie.js +++ b/commands/ytdltie.js @@ -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){