From 4c7e038866e059d33e7ff7a54deb7054eccbd977 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Mon, 18 Apr 2022 23:17:44 -0600 Subject: [PATCH] music: stupid discord limits on dropdown entries --- src/modules/music.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/music.js b/src/modules/music.js index 7035d87..ece3d0e 100644 --- a/src/modules/music.js +++ b/src/modules/music.js @@ -341,7 +341,11 @@ async function youtubeSearch(msg, str) { const selection = items.map((item) => ({ value: "https://youtu.be/" + item.id.videoId, key: item.id.videoId, - display: `"${item.snippet.title}" from ${item.snippet.channelTitle}`, + display: + `"${item.snippet.title}" from ${item.snippet.channelTitle}`.substring( + 0, + 100 + ), })); try {