From b76a77807baf5811bd8fad56cc95bfb413a3a65c Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sat, 22 Jun 2024 20:59:27 -0600 Subject: [PATCH] Possible fix to #20 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index fbc9025..abdce84 100644 --- a/index.js +++ b/index.js @@ -1310,7 +1310,7 @@ discord.on("interactionCreate", async (interaction) => { } // Retruns raw text, paginate it into multiple embeds if needed res.text().then(async (text) => { - const pages = text.match(/[\s\S]{1,2000}(?=\n|$)/g); + const pages = text.match(/[\s\S]{1,1900}(?=\n|$)/g); // const embeds = pages.map((page, ind) => ({ // title: `Product Text for ${product_id} Pg ${ind + 1}/${pages.length}`, // description: `\`\`\`${page}\`\`\``,