Fixed issue where a new template would not have been shown

merge-requests/3/head
Supositware 5 years ago
parent d70bc8bbdd
commit 091ca60365

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

Loading…
Cancel
Save