aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-11-29 08:36:41 -0500
committerAndrew Lee <alee14498@protonmail.com>2022-11-29 08:36:41 -0500
commit04a22f66087656fdbb8d0f98c9331334cae6eb22 (patch)
tree8617325764e61cf3d71298c4cbc0332eaff7b267
parentd8068715eff8536bb223b191aaa69efc35af1a36 (diff)
downloadDLAP-04a22f66087656fdbb8d0f98c9331334cae6eb22.tar.gz
DLAP-04a22f66087656fdbb8d0f98c9331334cae6eb22.tar.bz2
DLAP-04a22f66087656fdbb8d0f98c9331334cae6eb22.zip
Reverted titles; Fixed formatting
-rw-r--r--AudioBackend.js4
-rw-r--r--commands/status.js8
2 files changed, 7 insertions, 5 deletions
diff --git a/AudioBackend.js b/AudioBackend.js
index 3cd2867..9a3feaf 100644
--- a/AudioBackend.js
+++ b/AudioBackend.js
@@ -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 },
diff --git a/commands/status.js b/commands/status.js
index 4e4bebe..6faa3bb 100644
--- a/commands/status.js
+++ b/commands/status.js
@@ -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) {