Added a better catch statement for the 'scrape' command

This commit is contained in:
ION606
2022-05-24 09:10:12 +03:00
parent 6c51d4107b
commit 7b01151dde
+5 -1
View File
@@ -16,7 +16,11 @@ module.exports ={
message.channel.send(haste);
// console.log(lyrics);
})
.catch(console.error);
.catch(function(err) {
if (err.message.indexOf('The "url" argument must be of type string.') != -1) {
message.reply("The URL should be a string!");
}
});
}
}