diff --git a/commands/message/utils/ocr.js b/commands/message/utils/ocr.js index ba99def..7d995f1 100644 --- a/commands/message/utils/ocr.js +++ b/commands/message/utils/ocr.js @@ -34,7 +34,7 @@ module.exports = { thumbnail: { url: image }, - description: codeblock("ansi", [ocr.response.body.text]), + description: codeblock("ansi", [ocr.response.body.text.substr(0,4000)]), footer: { iconUrl: STATICS.google, text: `Google Cloud Vision • ${context.application.name} • Took ${ocr.timings}s` diff --git a/commands/message/utils/ocrtr.js b/commands/message/utils/ocrtr.js index 4ec7ba1..062f765 100644 --- a/commands/message/utils/ocrtr.js +++ b/commands/message/utils/ocrtr.js @@ -54,7 +54,7 @@ module.exports = { let toFlag = TRANSLATE_LANGUAGE_MAPPINGS[translate.response.body.language.to] || '' return editOrReply(context, createEmbed("default", context, { - description: `${icon("locale")} ​ ${fromFlag} ${pill(TRANSLATE_LANGUAGES[translate.response.body.language.from || args.from])} ​ ​ ​​${icon("arrow_right")} ​ ​ ​ ​${toFlag} ${pill(TRANSLATE_LANGUAGES[translate.response.body.language.to])}\n${codeblock("ansi", [translate.response.body.translation])}`, + description: `${icon("locale")} ​ ${fromFlag} ${pill(TRANSLATE_LANGUAGES[translate.response.body.language.from || args.from])} ​ ​ ​​${icon("arrow_right")} ​ ​ ​ ​${toFlag} ${pill(TRANSLATE_LANGUAGES[translate.response.body.language.to])}\n${codeblock("ansi", [translate.response.body.translation.substr(0,4000)])}`, thumbnail: { url: image },