From 9c4a57a098ba1050c22134574910abf7d46619f7 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Tue, 24 Jun 2025 03:35:54 +0200 Subject: [PATCH] Assign sliced string --- commands/admin/update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/admin/update.js b/commands/admin/update.js index 7de9db0..ad79b11 100644 --- a/commands/admin/update.js +++ b/commands/admin/update.js @@ -27,7 +27,7 @@ module.exports = { let commitCount = stdout.split(/\r\n|\r|\n/).length - 1 sendText = `${sendText}\n\nLatest commits (${commitCount}):\n${stdout}` if(sendText.length >= 2000){ - sendText.slice(1955) + sendText = sendText.slice(1955) sendText = `${sendText}\n... Message is too long to show everything` } message.channel.send(sendText)