Delete loading message first
This commit is contained in:
parent
57c5d5a0a5
commit
4113b0dab1
1 changed files with 2 additions and 1 deletions
|
@ -127,12 +127,13 @@ class DownloadCommand extends Command {
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
compressmsg.delete();
|
compressmsg.delete();
|
||||||
|
loadingmsg.delete();
|
||||||
return message.channel.send('File too big');
|
return message.channel.send('File too big');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
message.delete();
|
|
||||||
loadingmsg.delete();
|
loadingmsg.delete();
|
||||||
|
message.delete();
|
||||||
|
|
||||||
return message.channel.send({embed: Embed, files: [`${os.tmpdir()}/${fileName}.mp4`]})
|
return message.channel.send({embed: Embed, files: [`${os.tmpdir()}/${fileName}.mp4`]})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
|
|
Loading…
Reference in a new issue