From da55997534b2e2c9b6712cbe0138b83c012ba2e2 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Fri, 2 Apr 2021 22:39:03 -0500 Subject: [PATCH] Improve userInfo message --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 3321c3a..f2a71d8 100644 --- a/index.js +++ b/index.js @@ -142,11 +142,13 @@ 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(' • ')) + .addField("Permissions", member.permissions.toArray().map(p => `\`${p}\``.toLowerCase()).join(' • ')) + .addField("Joined at", member.joinedTimestamp, true) + .addField("Account created", member.user.createdTimestamp, true) .setColor("00c5ff") .setFooter(`User ID: ${member.user.id}`) .setTimestamp(); - message.channel.send(userInfoEmbed); + message.channel.send(userInfoEmbed).catch(console.error); } async function addRole(message) {