mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
fixes an issue
This commit is contained in:
parent
1869606b87
commit
09ccb0515e
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ const { canUseLimitedTestCommands } = require('../../../labscore/utils/testing')
|
||||||
const { STATIC_ICONS } = require('../../../labscore/utils/statics');
|
const { STATIC_ICONS } = require('../../../labscore/utils/statics');
|
||||||
|
|
||||||
const superagent = require('superagent')
|
const superagent = require('superagent')
|
||||||
const { iconPill } = require('../../../labscore/utils/markdown')
|
const { iconPill, stringwrap } = require('../../../labscore/utils/markdown')
|
||||||
|
|
||||||
const { Permissions } = require("detritus-client/lib/constants");
|
const { Permissions } = require("detritus-client/lib/constants");
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ module.exports = {
|
||||||
files
|
files
|
||||||
})
|
})
|
||||||
}catch(e){
|
}catch(e){
|
||||||
if(e.response.body?.message) return editOrReply(context, createEmbed("warning", context, e.response.body.message))
|
if(e.response?.body?.message) return editOrReply(context, createEmbed("warning", context, e.response.body.message))
|
||||||
|
|
||||||
console.log(e)
|
console.log(e)
|
||||||
return editOrReply(context, createEmbed("error", context, `Unable to generate text.`))
|
return editOrReply(context, createEmbed("error", context, `Unable to generate text.`))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue