From e04b8784709d6d700c433aac14c7f6a0f1268eb2 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Thu, 6 Apr 2023 00:29:13 +0500 Subject: [PATCH] =?UTF-8?q?=D0=95=D1=89=D1=91=20=D1=80=D0=B6=D0=B0=D0=BA?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Music/play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/Music/play.js b/commands/Music/play.js index c2cdac6d..f51856f2 100644 --- a/commands/Music/play.js +++ b/commands/Music/play.js @@ -87,7 +87,7 @@ class Play extends BaseCommand { return interaction.respond( results.tracks.slice(0, 10).map(track => ({ - name: `${track.author} - ${track.title}`.slice(0, 90) + "...", + name: (`${track.author} - ${track.title}`.length >= 100 & `${track.author} - ${track.title}`.slice(0, 90) + "...") || `${track.author} - ${track.title}`, value: track.url, }), ));