From 077075040e8f75621842b0f111d0bb44b0dd801d Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Fri, 2 Apr 2021 22:34:53 -0500 Subject: [PATCH] Attempt to add permissions to userInfo --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index c19419b..1ae8049 100644 --- a/index.js +++ b/index.js @@ -142,6 +142,7 @@ async function userInfo(message) { const userInfoEmbed = new Discord.MessageEmbed() .setAuthor(member.user.tag, member.user.avatarURL()) .addField("Roles", member.roles.cache.map(r => `${r}`).join(' • ')) + .addField("Permissions", member.permissions.toArray().map(p => `${p}`).join(' • ')) .setColor("00c5ff") .setFooter(`User ID: ${member.user.id}`) .setTimestamp();