Browse Source

Rename roleUpdate variables

master
Abheek Dhawan 4 years ago
parent
commit
862cb61735
  1. 4
      index.js

4
index.js

@ -440,8 +440,8 @@ client.on('roleDelete', role => {
}); });
client.on('roleUpdate', (oldRole, newRole) => { client.on('roleUpdate', (oldRole, newRole) => {
const messageReactionRemoveEmbed = new Discord.MessageEmbed() const roleUpdateEmbed = new Discord.MessageEmbed()
.setTitle("Role Added") .setTitle("Role Updated")
.addField("Name", `${oldRole.name} >> ${newRole.name}`) .addField("Name", `${oldRole.name} >> ${newRole.name}`)
.addField("Permissions", `${oldRole.permissions.bitfield} >> ${newRole.permissions.bitfield}`) .addField("Permissions", `${oldRole.permissions.bitfield} >> ${newRole.permissions.bitfield}`)
.addField("Mentionable", `${oldRole.mentionable} >> ${newRole.mentionable}`) .addField("Mentionable", `${oldRole.mentionable} >> ${newRole.mentionable}`)

Loading…
Cancel
Save