Reverted titles; Fixed formatting

This commit is contained in:
Andrew Lee 2022-11-29 08:36:41 -05:00
parent d8068715ef
commit 04a22f6608
Signed by: andrew
GPG key ID: 4DCE67C47836D125
2 changed files with 7 additions and 5 deletions

View file

@ -184,14 +184,14 @@ export async function playAudio(bot) {
const statusEmbed = new EmbedBuilder();
if (metadataEmpty === true) {
statusEmbed.setTitle({ title: 'Now Playing' })
statusEmbed.setTitle('Now Playing')
statusEmbed.addFields(
{ name: 'Title', value: audio },
{ name: 'Duration', value: formattedDuration }
);
statusEmbed.setColor('#0066ff');
} else {
statusEmbed.setTitle({ title: 'Now Playing' });
statusEmbed.setTitle('Now Playing');
statusEmbed.addFields(
{ name: 'Title', value: audioTitle },
{ name: 'Artist', value: audioArtist },

View file

@ -50,9 +50,11 @@ export default {
const controlEmbed = new EmbedBuilder()
.setAuthor({ name: `${bot.user.username} Status`, iconURL: bot.user.avatarURL() })
.addFields({ name: 'State', value: playerState })
.addFields({ name: 'Tracks', value: `${audioID}/${files.length}` })
.addFields({ name: 'Duration', value: formattedDuration })
.addFields(
{ name: 'State', value: playerState },
{ name: 'Tracks', value: `${audioID}/${files.length}` },
{ name: 'Duration', value: formattedDuration }
)
.setColor('#0066ff');
if (metadataEmpty === true) {