add Authors in nowplaying, queue, trackstart event
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2023-02-20 18:42:25 +01:00
parent 1e46327f10
commit 48c0897e6f
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 3 additions and 3 deletions

View file

@ -80,7 +80,7 @@ export default {
.setDescription( .setDescription(
`${queue.createProgressBar()}\n\n${loc.get("c_play8")} ${track.requestedBy}` `${queue.createProgressBar()}\n\n${loc.get("c_play8")} ${track.requestedBy}`
) )
.setTitle(track.title) .setTitle(track.title + " • " + track.author)
.setURL(track.url) .setURL(track.url)
.setThumbnail(track.thumbnail) .setThumbnail(track.thumbnail)
.setFooter({ text: loc.get("c_play7") }) .setFooter({ text: loc.get("c_play7") })

View file

@ -10,7 +10,7 @@ export default (queue: Queue<Metadata>, track: Track, client: Client) => {
const embed = new EmbedBuilder() const embed = new EmbedBuilder()
.setDescription(`${loc_default?.get("e_trackstart1")} ${track.requestedBy}`) .setDescription(`${loc_default?.get("e_trackstart1")} ${track.requestedBy}`)
.setTitle(track.title) .setTitle(track.title + " • " + track.author)
.setURL(track.url) .setURL(track.url)
.setThumbnail(track.thumbnail) .setThumbnail(track.thumbnail)
.setFooter({ .setFooter({

View file

@ -29,7 +29,7 @@ export const embedListQueue = (
const idx_track = idx == 0 ? "" : `${idx * page}. `; const idx_track = idx == 0 ? "" : `${idx * page}. `;
embed.addFields({ embed.addFields({
name, name,
value: `${idx_track}[${t.title}](${t.url}) (${t.duration})`, value: `${idx_track}[${t.title}${t.author}](${t.url}) (${t.duration})`,
}); });
}); });
}; };