From 091ca60365d007c8513540c49c764304b106fc4a Mon Sep 17 00:00:00 2001 From: Supositware Date: Thu, 21 Mar 2019 20:57:51 +0100 Subject: [PATCH] Fixed issue where a new template would not have been shown --- commands/utility/spb.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/utility/spb.js b/commands/utility/spb.js index 1faf7b20..787eb7d2 100644 --- a/commands/utility/spb.js +++ b/commands/utility/spb.js @@ -32,9 +32,10 @@ class spbCommand extends Command { .then(res => { const dest = fs.createWriteStream('./spb.png'); res.body.pipe(dest); + dest.on('finish', () => { + return message.channel.send({files: ['./spb.png']}); + }); }); - - return await message.channel.send({files: ['./spb.png']}); } }