Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AkatGabrielGoncalves committed Oct 26, 2024
1 parent 3e6ccaf commit d920553
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/modules/music/embeds/playingEmbed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,22 @@ export const playingEmbed = (message: Message, currentlyPlaying: QueueItem) => {

const { title, thumbnail, url } = currentlyPlaying;

return new MessageEmbed()
let embed = new MessageEmbed()
.setTitle(title)
.setURL(url)
.setAuthor({
name: `Tocando agora em: ${guild?.name}` || '',
iconURL: guild?.iconURL() || undefined,
})
.setThumbnail(thumbnail)
.addFields({
name: 'Duração',
value: currentlyPlayingTime,
inline: true,
});

if (thumbnail !== '') {
embed = embed.setThumbnail(thumbnail);
}

return embed;
};

0 comments on commit d920553

Please sign in to comment.