From 48c0897e6fd5c63a3f12397f5ad0768f714776a4 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 20 Feb 2023 18:42:25 +0100 Subject: [PATCH] add Authors in nowplaying, queue, trackstart event --- src/commands/music/play.ts | 2 +- src/events/player/trackStart.ts | 2 +- src/utils/music.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/music/play.ts b/src/commands/music/play.ts index 5499761..5026ed5 100644 --- a/src/commands/music/play.ts +++ b/src/commands/music/play.ts @@ -80,7 +80,7 @@ export default { .setDescription( `${queue.createProgressBar()}\n\n${loc.get("c_play8")} ${track.requestedBy}` ) - .setTitle(track.title) + .setTitle(track.title + " • " + track.author) .setURL(track.url) .setThumbnail(track.thumbnail) .setFooter({ text: loc.get("c_play7") }) diff --git a/src/events/player/trackStart.ts b/src/events/player/trackStart.ts index d733690..599b3d5 100644 --- a/src/events/player/trackStart.ts +++ b/src/events/player/trackStart.ts @@ -10,7 +10,7 @@ export default (queue: Queue, track: Track, client: Client) => { const embed = new EmbedBuilder() .setDescription(`${loc_default?.get("e_trackstart1")} ${track.requestedBy}`) - .setTitle(track.title) + .setTitle(track.title + " • " + track.author) .setURL(track.url) .setThumbnail(track.thumbnail) .setFooter({ diff --git a/src/utils/music.ts b/src/utils/music.ts index 21bf43d..29e8037 100644 --- a/src/utils/music.ts +++ b/src/utils/music.ts @@ -29,7 +29,7 @@ export const embedListQueue = ( const idx_track = idx == 0 ? "" : `${idx * page}. `; embed.addFields({ name, - value: `${idx_track}[${t.title}](${t.url}) (${t.duration})`, + value: `${idx_track}[${t.title} • ${t.author}](${t.url}) (${t.duration})`, }); }); };