const Discord = require('discord.js')
module.exports = (bot, oldMe, newMe, message) => {
const embed = new Discord.MessageEmbed()
.setColor(newMe.displayHexColor)
.setTitle(`Update Member : Les Prios du Lycée`)
.setDescription(`${newMe} a été modifié !`)
if (oldMe.nickname != newMe.nickname) {
embed.addField("Modification du pseudo", `**${oldMe.nickname}** → **${newMe.nickname}**`, false)
}
// if (oldMe.avatar != newMe.avatar) {
// embed.setImage(newMe.user.displayAvatarURL({ dynamic: true }))
// }
if (oldMe.user.discriminator != newMe.user.discriminator) {
embed.addField("Modification du discriminant", `**${oldMe.user.discriminator}** → **${newMe.user.discriminator}**`, false)
}
if (oldMe.user.username != newMe.user.username) {
embed.addField("Modification du nom d'utilisateur", `**${oldMe.user.username}** → **${newMe.user.username}**`, false)
}
if (embed.fields.length > 0) { botlog.send(embed) }
};
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…