diff --git a/src/events/Client/playerButton.js b/src/events/Client/playerButton.js index eb40b7c2b..5d2bfa310 100644 --- a/src/events/Client/playerButton.js +++ b/src/events/Client/playerButton.js @@ -27,7 +27,7 @@ module.exports = { player.destroy(); return await buttonReply(interaction, `Nothing is playing right now.`, color); }; - const { title, uri, duration, requester } = player.queue.current; + const { title, uri, duration, requester, author } = player.queue.current; let message; try { @@ -39,7 +39,7 @@ module.exports = { let icon = player.queue.current.identifier ? `https://img.youtube.com/vi/${player.queue.current.identifier}/maxresdefault.jpg` : client.config.links.img; - let nowplaying = new EmbedBuilder().setColor(color).setDescription(`[${title}](${uri}) • \`[${convertTime(duration)}]\``).setImage(icon).setFooter({ text: `Requested by ${requester.username}`, iconURL: requester.displayAvatarURL({ dynamic: true }) }); + let nowplaying = new EmbedBuilder().setColor(color).setDescription(`[${title}](${uri}) by ${author} • \`[${convertTime(duration)}]\``).setImage(icon).setFooter({ text: `Requested by ${requester.username}`, iconURL: requester.displayAvatarURL({ dynamic: true }) }); if (interaction.customId === `pause_but_${interaction.guildId}`) { if (player.paused) { @@ -109,4 +109,3 @@ module.exports = { }; } } - diff --git a/src/events/Lavalink/trackStart.js b/src/events/Lavalink/trackStart.js index 29b99ed11..ce1799946 100644 --- a/src/events/Lavalink/trackStart.js +++ b/src/events/Lavalink/trackStart.js @@ -51,7 +51,7 @@ module.exports = async (client, player, track, payload) => { .setDescription( `${emojiplay} **Started Playing**\n [${track?.title ?? queue.title}](${ track?.uri ?? queue.uri - }) - \`[${convertTime(track?.duration ?? queue.duration)}]\`` + }) by ${track.author} - \`[${convertTime(track?.duration ?? queue.duration)}]\`` ) .setThumbnail( track?.thumbnail ?? diff --git a/src/utils/functions.js b/src/utils/functions.js index fb4bb6fe9..2867bd71e 100644 --- a/src/utils/functions.js +++ b/src/utils/functions.js @@ -116,7 +116,7 @@ function neb(embed, player, client) { return embed .setDescription( `[${player.queue.current.title}](${player.queue.current.uri - }) • \`[${convertTime(player.queue.current.duration)}]\`` + }) by ${player.queue.current.author} • \`[${convertTime(player.queue.current.duration)}]\`` ) .setImage(icon) .setFooter({ @@ -277,7 +277,7 @@ async function trackStartEventHandler(msgId, channel, player, track, client) { let embed1 = new EmbedBuilder() .setColor(client.embedColor) .setDescription( - `[${track.title}](${track.uri}) - \`[${convertTime( + `[${track.title}](${track.uri}) by ${track.author} - \`[${convertTime( track.duration )}]\`` ) @@ -340,7 +340,7 @@ async function trackStartEventHandler(msgId, channel, player, track, client) { .setColor(message.client.embedColor) .setDescription( `${emojiplay} **Started Playing** - [${track.title}](${track.uri - }) - \`[${convertTime(track.duration)}]\`` + }) by ${track.author} - \`[${convertTime(track.duration)}]\`` ) .setImage(icon) .setFooter({