diff --git a/src/modules/music.js b/src/modules/music.js index 0e2a657..f68a881 100644 --- a/src/modules/music.js +++ b/src/modules/music.js @@ -365,11 +365,12 @@ 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}`.substring( - 0, - 100 - ), + display: `${item.snippet.title.substring(0, 99)}${ + item.snippet.title.length > 99 ? "…" : "" + }`, + description: `from ${item.snippet.channelTitle.substring(0, 95)}${ + item.snippet.channelTitle.length > 95 ? "…" : "" + }`, })); try {