From 4113b0dab146f853c907d1153031e05b0531447f Mon Sep 17 00:00:00 2001 From: loicbersier Date: Mon, 11 Nov 2019 18:04:40 +0100 Subject: [PATCH] Delete loading message first --- commands/utility/download.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/utility/download.js b/commands/utility/download.js index a1a8ce31..523d14e7 100644 --- a/commands/utility/download.js +++ b/commands/utility/download.js @@ -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 => {