|
|
@ -959,9 +959,9 @@ client.on('roleUpdate', (oldRole, newRole) => { |
|
|
|
const addedPerms = newRole.permissions.toArray().filter(perm => !oldRole.permissions.has(perm)); |
|
|
|
const roleUpdateEmbed = new Discord.MessageEmbed() |
|
|
|
.setTitle("Role Updated") |
|
|
|
.addField("Name", `${oldRole.name} >> ${newRole.name}`) |
|
|
|
.addField("Permissions", `${oldRole.permissions.bitfield} >> ${newRole.permissions.bitfield}`) |
|
|
|
.addField("Mentionable", `${oldRole.mentionable} >> ${newRole.mentionable}`) |
|
|
|
.addField("Name", `${oldRole.name} » ${newRole.name}`) |
|
|
|
.addField("Permissions", `${oldRole.permissions.bitfield} » ${newRole.permissions.bitfield}`) |
|
|
|
.addField("Mentionable", `${oldRole.mentionable} » ${newRole.mentionable}`) |
|
|
|
.setFooter("Role ID: " + newRole.id) |
|
|
|
.setTimestamp() |
|
|
|
.setColor('c9ff00'); |
|
|
@ -1049,9 +1049,9 @@ client.on('guildMemberUpdate', (oldMember, newMember) => { |
|
|
|
} else if (addedRoles.array().length > 0) { |
|
|
|
memberUpdateEmbed.addField("Roles Added", addedRoles.map(r => `${r}`).join(' • ')); |
|
|
|
} else if (newMember.nickname !== oldMember.nickname) { |
|
|
|
memberUpdateEmbed.addField("Nickname Changed", `\`${oldMember.nickname}\` >> \`${newMember.nickname}\``) |
|
|
|
memberUpdateEmbed.addField("Nickname Changed", `\`${oldMember.nickname}\` » \`${newMember.nickname}\``) |
|
|
|
} else if (newMember.user.tag !== oldMember.user.tag) { |
|
|
|
memberUpdateEmbed.addField("User Tag Changed", `\`${oldMember.user.tag}\` >> \`${newMember.user.tag}\``) |
|
|
|
memberUpdateEmbed.addField("User Tag Changed", `\`${oldMember.user.tag}\` » \`${newMember.user.tag}\``) |
|
|
|
} else { |
|
|
|
return; |
|
|
|
} |
|
|
|