Feat: Author in music stuff #75

Merged
Anri merged 2 commits from music/feat-author into main 2023-02-20 18:43:42 +01:00
4 changed files with 4 additions and 4 deletions

View file

@ -56,7 +56,7 @@ export default {
const title = queue.current?.title;
if (title) {
try {
data = await client.player.lyrics.search(title);
data = await client.player.lyrics.search(title + " " + queue.current.author);
} catch {
return await interaction.followUp(`❌ | ${loc.get("c_lyrics2")} \`${title}\``);
}

View file

@ -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") })

View file

@ -10,7 +10,7 @@ export default (queue: Queue<Metadata>, 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({

View file

@ -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})`,
});
});
};