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);
|
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,
|
||||||
}))
|
}))
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue