Add author to the list
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2023-08-08 22:06:06 +02:00
parent 49283ae699
commit c5f62e36ab
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

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,
})) }))
); );