fixes errors with ctx commands

This commit is contained in:
bignutty 2024-07-28 17:25:59 +02:00
parent 11d20a8334
commit d5d5f01cdc
4 changed files with 21 additions and 26 deletions

View file

@ -62,10 +62,7 @@ module.exports = {
}
}catch(e){
console.log(e)
await context.editOrRespond({
embeds: [createEmbed("error", context, "Unable to perform Optical Character Recognition.")],
flags: MessageFlags.EPHEMERAL
})
await editOrReply(context, createEmbed("error", context, "Unable to perform Optical Character Recognition."))
}
},
};