From c4956794142dece016153993a43a1e4c36a29db5 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Wed, 6 Mar 2024 19:08:46 -0700 Subject: [PATCH] Whoops --- index.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 686b3c6..d91afed 100644 --- a/index.js +++ b/index.js @@ -230,17 +230,23 @@ const generateExtensionListEmbed = async () => { let field = ""; let embeds = []; let count = 0; + + // put for loop in function and await it embeds.push({ "title": "Extension List", "color": 0x00ff00, "description": `${extensions.length} extensions\n\`* = inactive for 30 days\`\n\`** = inactive for 90 days\`\n\`- = never used\``, }) - // put for loop in function and await it - await (async () => { for (let key in extensionList) { field += `\`${key}${inactiveFlag[key]}\`: ${extensionList[key]}\n`; + if (cound == 0) { + embeds[0].fields = [{ + "name": "Extensions", + "value": field + }]; + } count++; if (field.length >= 1024) { embeds.push({