From bc65185b985ba05e98dded60805367fd7e74a11e Mon Sep 17 00:00:00 2001 From: baz Date: Fri, 19 Jul 2024 00:18:56 +0100 Subject: [PATCH] Update for max description character length --- commands/100-games/changelog.js | 2 +- commands/100-games/globalchangelog.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/100-games/changelog.js b/commands/100-games/changelog.js index 76ee0d6..b93da78 100644 --- a/commands/100-games/changelog.js +++ b/commands/100-games/changelog.js @@ -36,7 +36,7 @@ module.exports = { newDesc = `:x: deleted **${game.name}** from **${changelogEntries[i].oldStatus}** *(${changelogEntries[i].createdAt.toLocaleDateString('en-GB', { year: 'numeric', month: '2-digit', day: '2-digit' }).replace(/\//g, '/')})*\n`; } - if (newDesc.length + desc.length < 2000) { + if (newDesc.length + desc.length < 4096) { desc = desc.concat(newDesc); } else { diff --git a/commands/100-games/globalchangelog.js b/commands/100-games/globalchangelog.js index 10e4118..bc73442 100644 --- a/commands/100-games/globalchangelog.js +++ b/commands/100-games/globalchangelog.js @@ -25,7 +25,7 @@ module.exports = { newDesc = `:x: *${user.username}* deleted **${game.name}** from **${changelogEntries[i].oldStatus}** *(${changelogEntries[i].createdAt.toLocaleDateString('en-GB', { year: 'numeric', month: '2-digit', day: '2-digit' }).replace(/\//g, '/')})*\n`; } - if (newDesc.length + desc.length < 2000) { + if (newDesc.length + desc.length < 4096) { desc = desc.concat(newDesc); } else {