feat: enchance autocompletion & more #103
1 changed files with 3 additions and 2 deletions
|
@ -192,9 +192,10 @@ export default {
|
|||
tracks = tracks.slice(0, 25);
|
||||
}
|
||||
|
||||
// Returns a list of songs with their title and author
|
||||
return interaction.respond(
|
||||
tracks.slice(0, 10).map((t) => ({
|
||||
name: t.title,
|
||||
tracks.map((t) => ({
|
||||
name: `${t.title} • ${t.author}`,
|
||||
value: t.url,
|
||||
}))
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue