Change when it check for link

Signed-off-by: loicbersier <loic.bersier1@gmail.com>
akairo
loicbersier 4 years ago
parent 8abe1bd25c
commit e1ad11ce55

@ -51,8 +51,6 @@ class DownloadCommand extends Command {
}
async exec(message, args) {
if (!args.link) return message.channel.send('Please try again with a valid URL.');
if (args.listproxy) {
let proxys = [];
@ -71,6 +69,8 @@ class DownloadCommand extends Command {
return message.channel.send(Embed);
}
if (!args.link) return message.channel.send('Please try again with a valid URL.');
let loadingmsg = await message.channel.send('Downloading <a:loadingmin:527579785212329984>');
let filename = `${message.id}_video`;

Loading…
Cancel
Save