forked from Supositware/Haha-Yes
Fixed issue where a new template would not have been shown
This commit is contained in:
parent
d70bc8bbdd
commit
091ca60365
1 changed files with 3 additions and 2 deletions
|
@ -32,9 +32,10 @@ class spbCommand extends Command {
|
||||||
.then(res => {
|
.then(res => {
|
||||||
const dest = fs.createWriteStream('./spb.png');
|
const dest = fs.createWriteStream('./spb.png');
|
||||||
res.body.pipe(dest);
|
res.body.pipe(dest);
|
||||||
|
dest.on('finish', () => {
|
||||||
|
return message.channel.send({files: ['./spb.png']});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
return await message.channel.send({files: ['./spb.png']});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue