From 0654cf6d6814c606f3bd6d953f39239f4562c8c7 Mon Sep 17 00:00:00 2001 From: Fire-Swan <60622768+Fire-Swan@users.noreply.github.com> Date: Wed, 1 May 2024 14:28:22 -0400 Subject: [PATCH] Title can't exceed 100 characters If the title length exceeds 100 characters, use the first 97 characters followed by (`...`) --- commands/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/request.js b/commands/request.js index 0e11a60..e470fe2 100644 --- a/commands/request.js +++ b/commands/request.js @@ -84,7 +84,7 @@ module.exports = { mediaResults.forEach(o => { const emoji = o.mediaType === 'movie' ? '🎥' : '📺'; objectsWithoutDefault.push({ - label: `${o.title}`, + label: `${o.title.substr(0, 97) + '...'}`, description: `${o.overview.substr(0, 97) + '...'}`, value: `${o.mediaType + ',' + o.id + ',' + messageId + ',' + args}`, emoji,