From e8fc57394f57150ba403117be732d907976cfa56 Mon Sep 17 00:00:00 2001 From: Supositware Date: Sun, 7 Jan 2024 01:10:02 +0100 Subject: [PATCH] Return when the video is too big --- commands/utility/download.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/utility/download.js b/commands/utility/download.js index 0b0fb7e..44610c4 100644 --- a/commands/utility/download.js +++ b/commands/utility/download.js @@ -126,10 +126,10 @@ export default { const aproxFileSize = await utils.getVideoSize(url); if (aproxFileSize > 100 && !args.compress) { - await interaction.followUp('Uh oh! The video you tried to download is larger than 100 mb! Try again with compression.', { ephemeral: true }); + return await interaction.followUp('Uh oh! The video you tried to download is larger than 100 mb! Try again with compression.', { ephemeral: true }); } else if (aproxFileSize > 500) { - await interaction.followUp('Uh oh! The video you tried to download is larger than 500 mb!', { ephemeral: true }); + return await interaction.followUp('Uh oh! The video you tried to download is larger than 500 mb!', { ephemeral: true }); } download(url, interaction);