Fixed issue where a new template would not have been shown

This commit is contained in:
Supositware 2019-03-21 20:57:51 +01:00
parent d70bc8bbdd
commit 091ca60365

View file

@ -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']});
}
}