Ещё ржака

This commit is contained in:
Jonny_Bro (Nikita) 2023-04-06 00:29:13 +05:00
parent dee8d38b42
commit e04b878470

View file

@ -87,7 +87,7 @@ class Play extends BaseCommand {
return interaction.respond( return interaction.respond(
results.tracks.slice(0, 10).map(track => ({ results.tracks.slice(0, 10).map(track => ({
name: `${track.author} - ${track.title}`.slice(0, 90) + "...", name: (`${track.author} - ${track.title}`.length >= 100 & `${track.author} - ${track.title}`.slice(0, 90) + "...") || `${track.author} - ${track.title}`,
value: track.url, value: track.url,
}), }),
)); ));