From ad31e15d92922c90b3fa331461ebb01092ac6122 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Fri, 2 Apr 2021 15:55:19 -0500 Subject: [PATCH] Use permissions array instead of permissions object --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5d4571a..a6082d1 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) + .addField("Permissions", role.permissions.toArray()) .addField("Mentionable", role.mentionable) .setFooter("Role ID: " + role.id) .setTimestamp()