music: stupid discord limits on dropdown entries

This commit is contained in:
Cynthia Foxwell 2022-04-18 23:17:44 -06:00
parent 672c39e516
commit 4c7e038866

View file

@ -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 {