mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
add error message
This commit is contained in:
parent
b177fce0c8
commit
e1c05f8460
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ module.exports = {
|
|||
let description = []
|
||||
let files = [];
|
||||
|
||||
if(!res.body.output) res.body.output = '[Empty Response]'
|
||||
if(!res.body.output) return editOrReply(context, {embeds:[createEmbed("error", context, `Bard returned an error. Try again later.`)]})
|
||||
|
||||
if(res.body.output.length <= 4000) description.push(res.body.output)
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue