mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 07:03:08 -04:00
make all image responses use the same embed type
This commit is contained in:
parent
951cb87a82
commit
43d8801821
14 changed files with 138 additions and 152 deletions
|
@ -27,20 +27,20 @@ module.exports = {
|
|||
const timings = Date.now();
|
||||
let mkswt = await billboardCityscape(image)
|
||||
|
||||
await response.edit({ embeds: [createEmbed("default", context, {
|
||||
image: {
|
||||
url: "attachment://makesweet.gif"
|
||||
},
|
||||
footer: {
|
||||
iconUrl: STATICS.makesweet,
|
||||
text: `MakeSweet • Took ${((Date.now() - timings) / 1000).toFixed(2)}s`
|
||||
}
|
||||
})], files: [{
|
||||
filename: "makesweet.gif",
|
||||
value: mkswt.body
|
||||
}] })
|
||||
return await response.edit({
|
||||
embeds: [createEmbed("image", context, {
|
||||
url: "makesweet.gif",
|
||||
time: ((Date.now() - timings) / 1000).toFixed(2),
|
||||
provider: {
|
||||
icon: STATICS.makesweet,
|
||||
text: "MakeSweet"
|
||||
}
|
||||
})],
|
||||
files: [{ filename: "makesweet.gif", value: mkswt.body }]
|
||||
})
|
||||
} catch (e) {
|
||||
await response.edit({ embeds: [createEmbed("error", context, e)] })
|
||||
console.log(e)
|
||||
await response.edit({ embeds: [createEmbed("error", context, "Something went wrong.")] })
|
||||
}
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue