mirror of
https://github.com/MinazukiAmane/Tinasha-Bot.git
synced 2025-03-15 15:56:01 +08:00
fix long title error
This commit is contained in:
parent
2f0c2c387c
commit
c014979abd
@ -125,7 +125,7 @@ async function search({ member, guild, channel }, query, source) {
|
|||||||
|
|
||||||
const results = res.tracks.slice(0, maxResults);
|
const results = res.tracks.slice(0, maxResults);
|
||||||
const options = results.map((track, index) => ({
|
const options = results.map((track, index) => ({
|
||||||
label: track.info.title,
|
label: track.info.title.slice(0, 100),
|
||||||
value: index.toString(),
|
value: index.toString(),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user