mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-13 16:43:05 -04:00
fixes an issue where the bot would edit deleted replies
This commit is contained in:
parent
bbafd7f48c
commit
4f1d288d3e
11 changed files with 31 additions and 32 deletions
|
@ -31,7 +31,7 @@ module.exports = {
|
|||
const timings = Date.now();
|
||||
let mkswt = await billboardCityscape(image)
|
||||
|
||||
return await response.edit({
|
||||
return await editOrReply(context, {
|
||||
embeds: [createEmbed("image", context, {
|
||||
url: "makesweet.gif",
|
||||
time: ((Date.now() - timings) / 1000).toFixed(2),
|
||||
|
@ -44,7 +44,7 @@ module.exports = {
|
|||
})
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
await response.edit({ embeds: [createEmbed("error", context, "Something went wrong.")] })
|
||||
await editOrReply(context, { embeds: [createEmbed("error", context, "Something went wrong.")] })
|
||||
}
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue