Switched to content.embeds

This commit is contained in:
Essem 2021-11-09 22:09:10 -06:00
parent ef5023b639
commit fae75db44a
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
19 changed files with 195 additions and 197 deletions

View file

@ -102,29 +102,29 @@ export async function nextSong(client, message, connection, track, info, music,
playingMessage = players.get(voiceChannel.guild.id).playMessage;
} else {
playingMessage = await client.createMessage(message.channel.id, !music ? "🔊 Playing sound..." : {
"embed": {
"color": 16711680,
"author": {
"name": "Now Playing",
"icon_url": client.user.avatarURL
embeds: [{
color: 16711680,
author: {
name: "Now Playing",
icon_url: client.user.avatarURL
},
"fields": [{
"name": " Title:",
"value": info.title !== "" ? info.title : "(blank)"
fields: [{
name: " Title:",
value: info.title !== "" ? info.title : "(blank)"
},
{
"name": "🎤 Artist:",
"value": info.author !== "" ? info.author : "(blank)"
name: "🎤 Artist:",
value: info.author !== "" ? info.author : "(blank)"
},
{
"name": "💬 Channel:",
"value": voiceChannel.name
name: "💬 Channel:",
value: voiceChannel.name
},
{
"name": `${"▬".repeat(parts)}🔘${"▬".repeat(10 - parts)}`,
"value": `0:00/${info.isStream ? "∞" : format(info.length)}`
name: `${"▬".repeat(parts)}🔘${"▬".repeat(10 - parts)}`,
value: `0:00/${info.isStream ? "∞" : format(info.length)}`
}]
}
}]
});
}
connection.removeAllListeners("error");