mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 22:53:06 -04:00
upload result to discord
This commit is contained in:
parent
93084987ed
commit
9f7d63da4b
1 changed files with 8 additions and 5 deletions
|
@ -48,11 +48,14 @@ module.exports = {
|
||||||
|
|
||||||
clearTimeout(noticeTimer)
|
clearTimeout(noticeTimer)
|
||||||
|
|
||||||
await response.edit({ embeds: [
|
let imageData = await superagent.get(img.body.image)
|
||||||
createEmbed("image", context, {
|
|
||||||
url: img.body.image
|
return editOrReply(context, {
|
||||||
})
|
embeds: [createEmbed("image", context, {
|
||||||
] })
|
url: "edited.jpg"
|
||||||
|
})],
|
||||||
|
files: [{ filename: "edited.jpg", value: imageData.body }]
|
||||||
|
})
|
||||||
}catch(e){
|
}catch(e){
|
||||||
console.log(e)
|
console.log(e)
|
||||||
clearTimeout(noticeTimer)
|
clearTimeout(noticeTimer)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue