upload result to discord

This commit is contained in:
derpystuff 2023-07-23 23:49:36 +02:00
parent 93084987ed
commit 9f7d63da4b

View file

@ -48,11 +48,14 @@ module.exports = {
clearTimeout(noticeTimer)
await response.edit({ embeds: [
createEmbed("image", context, {
url: img.body.image
})
] })
let imageData = await superagent.get(img.body.image)
return editOrReply(context, {
embeds: [createEmbed("image", context, {
url: "edited.jpg"
})],
files: [{ filename: "edited.jpg", value: imageData.body }]
})
}catch(e){
console.log(e)
clearTimeout(noticeTimer)