forked from Supositware/Haha-Yes
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 => {
|
||||
console.error(err);
|
||||
compressmsg.delete();
|
||||
loadingmsg.delete();
|
||||
return message.channel.send('File too big');
|
||||
});
|
||||
});
|
||||
} else {
|
||||
message.delete();
|
||||
loadingmsg.delete();
|
||||
message.delete();
|
||||
|
||||
return message.channel.send({embed: Embed, files: [`${os.tmpdir()}/${fileName}.mp4`]})
|
||||
.catch(err => {
|
||||
|
|
Loading…
Reference in a new issue