From fbcd6855b4885c7e4fd09f1235592fe02bc9ab9a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= <loic@loics-macbook-pro.home>
Date: Sun, 18 Nov 2018 18:06:59 +0100
Subject: [PATCH] Delete the original message

---
 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 ba316df..35f2dce 100644
--- a/commands/utility/download.js
+++ b/commands/utility/download.js
@@ -30,8 +30,8 @@ module.exports = class downloadCommand extends Command {
             let video = youtubedl(link, [`--username=${fbuser}`,`--password=${fbpasswd}`])
             video.pipe(fs.createWriteStream('video.mp4'))
             video.on('end', function() {
-            message.delete();
-            message.delete();
+                message.channel.bulkDelete(2);
+
             message.channel.send({files: ["./video.mp4"]})
             .catch(error => message.say('An error has occured, the file might be too big or i cant download the link you provided'))
             })