mirror of
https://github.com/arthur-pbty/bot-discord-coins.git
synced 2026-06-03 15:07:20 +02:00
Update affichage
This commit is contained in:
@@ -33,26 +33,26 @@ module.exports = {
|
||||
resolve(rows);
|
||||
});
|
||||
});
|
||||
let CadenaS = ":unlock:"
|
||||
let CadenaS = "🔓"
|
||||
if (team.padlock == 5) {
|
||||
CadenaS = ":lock::lock::lock::lock::lock:"
|
||||
CadenaS = "🔐🔐🔐🔐🔐"
|
||||
}
|
||||
if (team.padlock == 4) {
|
||||
CadenaS = ":lock::lock::lock::lock:"
|
||||
CadenaS = "🔐🔐🔐🔐"
|
||||
}
|
||||
if (team.padlock == 3) {
|
||||
CadenaS = ":lock::lock::lock:"
|
||||
CadenaS = "🔐🔐🔐"
|
||||
}
|
||||
if (team.padlock == 2) {
|
||||
CadenaS = ":lock::lock:"
|
||||
CadenaS = "🔐"
|
||||
}
|
||||
if (team.padlock == 1) {
|
||||
CadenaS = ":lock:"
|
||||
CadenaS = "🔐"
|
||||
}
|
||||
|
||||
const embed = new EmbedBuilder()
|
||||
.setTitle('🛡️ Informations de team')
|
||||
.setDescription(`**Nom:** ${team.name}\n**Description:** ${team.description}\n**Banque:** ${team.bank} coins\n**Niveau:** ${team.level}\n**Reputation:** ${team.reputation}\n\n**Soldats:** ${team.soldiers}\n**Soldats blessés:** ${team.woundedSoldiers}\n**Niveau du camp:** ${team.campLevel}\n**Tourelles:** ${team.turrets}\n**Cadenas:** ${CadenaS}\n\n**Membres (${memberlist.length}):**\n${memberlist.map(member => `**${member.teamRole}:** <@${member.userId}>`).join('\n')}`)
|
||||
.setTitle('🛡️ Informations de `' + team.name + '`:')
|
||||
.setDescription(`**Id:** \`${team.id}\`\n**Description:** \`${team.description}\`\n**Banque:** \`${team.bank}\`coins\n**Niveau:** \`${team.level}\`\n**Reputation:** \`${team.reputation}\`\n\n**Soldats:** \`${team.soldiers}\`\n**Soldats blessés:** \`${team.woundedSoldiers}\`\n**Niveau du camp:** \`${team.campLevel}\`\n**Tourelles:** \`${team.turrets}\`\n**Cadenas:** \`${CadenaS}\`\n\n**Membres (\`${memberlist.length}\`):**\n${memberlist.map(member => `**${member.teamRole}:** <@${member.userId}>`).join('\n')}`)
|
||||
.setColor(await embedColor(message.author.id, message.guild.id))
|
||||
.setTimestamp()
|
||||
.setFooter({ text: `Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() });
|
||||
|
||||
Reference in New Issue
Block a user