mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-17 10:27:05 -04:00
fix editimage error
This commit is contained in:
parent
475d83987d
commit
3531348ec8
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ const {PERMISSION_GROUPS} = require("#constants");
|
|||
|
||||
const {createEmbed} = require("#utils/embed");
|
||||
const {acknowledge} = require("#utils/interactions");
|
||||
const {iconPill, stringwrap} = require("#utils/markdown");
|
||||
const {iconPill, stringwrap, stringwrapPreserveWords} = require("#utils/markdown");
|
||||
const {editOrReply} = require("#utils/message");
|
||||
const {STATIC_ASSETS} = require("#utils/statics");
|
||||
const {hasFeature} = require("#utils/testing");
|
||||
|
@ -63,7 +63,7 @@ module.exports = {
|
|||
});
|
||||
} catch(e) {
|
||||
console.log(e)
|
||||
if (e.response?.body?.message) return editOrReply(context, createEmbed("error", context, e.response.body.message))
|
||||
if (e.response?.body?.message) return editOrReply(context, createEmbed("error", context, stringwrapPreserveWords(e.response.body.message, 256, true)))
|
||||
return editOrReply(context, createEmbed("error", context, `Unable to edit image.`))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue