problème réglé sur l'embed

This commit is contained in:
Lantium 2022-04-18 22:12:21 +02:00
parent 1dce385e20
commit 5bac7f38f3

View File

@ -6,7 +6,7 @@ module.exports = {
utilisation: '{prefix}queue',
voiceChannel: true,
execute(client, message) {
async execute (client, message) {
const queue = player.getQueue(message.guild.id);
if (!queue) return message.channel.send(`No music currently playing ${message.author}... try again ? ❌`);
@ -17,8 +17,8 @@ module.exports = {
const methods = ['', '🔁', '🔂'];
embed.setColor('RED');
embed.setThumbnail(message.guild.iconURL({ size: 2048, dynamic: true }));
embed.setAuthor(`Server queue - ${message.guild.name} ${methods[queue.repeatMode]}`, client.user.displayAvatarURL({ size: 1024, dynamic: true }));
embed.setThumbnail(message.guild.iconURL({ dynamic: true }));
embed.setAuthor(`Server queue - ${message.guild.name} ${methods[queue.repeatMode]}`, client.user.displayAvatarURL({ dynamic: true }));
const tracks = queue.tracks.map((track, i) => `**${i + 1}** - ${track.title} | ${track.author} (requested by : ${track.requestedBy.username})`);
@ -28,8 +28,7 @@ module.exports = {
embed.setDescription(`Current ${queue.current.title}\n\n${tracks.slice(0, 5).join('\n')}\n\n${nextSongs}`);
embed.setTimestamp();
embed.setFooter(message.author.avatarURL({ dynamic: true }));
message.channel.send({ embeds: [embed] });
},
}
};