make error message use the system

This commit is contained in:
derpystuff 2022-07-05 19:41:46 +02:00
parent dc0acef0cd
commit aab815e0a2

View file

@ -55,7 +55,12 @@ module.exports = {
})
} catch(e){
console.log(e)
return await response.edit({ embeds: [createEmbed("error", context, `Unable to create screenshot.`) ] })
return await response.edit({
embeds: [createEmbed("image", context, {
url: "https://derpystuff.gitlab.io/webstorage4/v2/assets/screenshot/screenshot_error.png",
time: ((Date.now() - t) / 1000).toFixed(2)
})]
})
}
}
};