From c5f62e36abfe4cac209d64448a30f0a3b6d044ce Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 8 Aug 2023 22:06:06 +0200 Subject: [PATCH] Add author to the list --- src/commands/music/play.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commands/music/play.ts b/src/commands/music/play.ts index 34a5bd3..a32bff1 100644 --- a/src/commands/music/play.ts +++ b/src/commands/music/play.ts @@ -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, })) );