problème réglé sur l'embed
This commit is contained in:
parent
1dce385e20
commit
5bac7f38f3
|
@ -6,7 +6,7 @@ module.exports = {
|
||||||
utilisation: '{prefix}queue',
|
utilisation: '{prefix}queue',
|
||||||
voiceChannel: true,
|
voiceChannel: true,
|
||||||
|
|
||||||
execute(client, message) {
|
async execute (client, message) {
|
||||||
const queue = player.getQueue(message.guild.id);
|
const queue = player.getQueue(message.guild.id);
|
||||||
|
|
||||||
if (!queue) return message.channel.send(`No music currently playing ${message.author}... try again ? ❌`);
|
if (!queue) return message.channel.send(`No music currently playing ${message.author}... try again ? ❌`);
|
||||||
|
@ -17,8 +17,8 @@ module.exports = {
|
||||||
const methods = ['', '🔁', '🔂'];
|
const methods = ['', '🔁', '🔂'];
|
||||||
|
|
||||||
embed.setColor('RED');
|
embed.setColor('RED');
|
||||||
embed.setThumbnail(message.guild.iconURL({ size: 2048, dynamic: true }));
|
embed.setThumbnail(message.guild.iconURL({ dynamic: true }));
|
||||||
embed.setAuthor(`Server queue - ${message.guild.name} ${methods[queue.repeatMode]}`, client.user.displayAvatarURL({ size: 1024, 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})`);
|
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.setDescription(`Current ${queue.current.title}\n\n${tracks.slice(0, 5).join('\n')}\n\n${nextSongs}`);
|
||||||
|
|
||||||
embed.setTimestamp();
|
embed.setTimestamp();
|
||||||
embed.setFooter(message.author.avatarURL({ dynamic: true }));
|
|
||||||
|
|
||||||
message.channel.send({ embeds: [embed] });
|
message.channel.send({ embeds: [embed] });
|
||||||
},
|
}
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user