feat: enchance autocompletion & more #103

Merged
Anri merged 6 commits from enchance/music into main 2023-08-08 22:28:53 +02:00
Showing only changes of commit c5f62e36ab - Show all commits

View file

@ -192,9 +192,10 @@ export default {
tracks = tracks.slice(0, 25); tracks = tracks.slice(0, 25);
} }
// Returns a list of songs with their title and author
return interaction.respond( return interaction.respond(
tracks.slice(0, 10).map((t) => ({ tracks.map((t) => ({
name: t.title, name: `${t.title}${t.author}`,
value: t.url, value: t.url,
})) }))
); );