Update product text title to include product ID

This commit is contained in:
Christopher Cookman 2024-05-08 07:42:10 -06:00
parent a436c74bdd
commit 1d5746de33
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -461,7 +461,7 @@ discord.on("interactionCreate", async (interaction) => {
res.text().then((text) => { res.text().then((text) => {
const pages = text.match(/[\s\S]{1,2000}(?=\s|$)/g); const pages = text.match(/[\s\S]{1,2000}(?=\s|$)/g);
const embeds = pages.map((page, ind) => ({ const embeds = pages.map((page, ind) => ({
title: `Product Text Pg ${ind + 1}/${pages.length}`, title: `Product Text for ${product_id} Pg ${ind + 1}/${pages.length}`,
description: `\`\`\`${page}\`\`\``, description: `\`\`\`${page}\`\`\``,
color: 0x00ff00 color: 0x00ff00
})); }));