From 2073a46715672ec81e6f70cf061ac3ec3a9be471 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Sat, 21 Jun 2025 13:54:45 +0200 Subject: [PATCH] Fix file check --- commands/misc/dl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/misc/dl.js b/commands/misc/dl.js index b5ffbe8..35c07a1 100644 --- a/commands/misc/dl.js +++ b/commands/misc/dl.js @@ -46,7 +46,7 @@ module.exports = { let files = fs.readdirSync(downloadsDir); - if(files < 1) { + if(files.length < 1) { this.cleanUp(downloadsDir); originalMessage.edit("Something went wrong when downloading the video.") return;