Add author to the list
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
This commit is contained in:
parent
49283ae699
commit
c5f62e36ab
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