Update for max description character length

This commit is contained in:
baz 2024-07-19 00:18:56 +01:00
parent a5b69910e9
commit bc65185b98
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {