music: stupid discord limits on dropdown entries
This commit is contained in:
parent
672c39e516
commit
4c7e038866
1 changed files with 5 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue