Browse Source

Use permissions bitfield instead of array

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

2
index.js

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

Loading…
Cancel
Save