Browse Source

Use permissions array instead of permissions object

master
Abheek Dhawan 4 years ago
parent
commit
ad31e15d92
  1. 2
      index.js

2
index.js

@ -403,7 +403,7 @@ client.on('roleCreate', role => {
const messageReactionRemoveEmbed = new Discord.MessageEmbed() const messageReactionRemoveEmbed = new Discord.MessageEmbed()
.setTitle("Role Added") .setTitle("Role Added")
.addField("Name", role.name) .addField("Name", role.name)
.addField("Permissions", role.permissions) .addField("Permissions", role.permissions.toArray())
.addField("Mentionable", role.mentionable) .addField("Mentionable", role.mentionable)
.setFooter("Role ID: " + role.id) .setFooter("Role ID: " + role.id)
.setTimestamp() .setTimestamp()

Loading…
Cancel
Save