From 3287681db9e97e351cf7d841a40ea90ca9812413 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Fri, 2 Apr 2021 15:58:22 -0500 Subject: [PATCH] Use permissions bitfield instead of array --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a6082d1..041cc64 100644 --- a/index.js +++ b/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()