Browse Source

Attempt to add permissions to userInfo

master
Abheek Dhawan 4 years ago
parent
commit
077075040e
  1. 1
      index.js

1
index.js

@ -142,6 +142,7 @@ async function userInfo(message) {
const userInfoEmbed = new Discord.MessageEmbed() const userInfoEmbed = new Discord.MessageEmbed()
.setAuthor(member.user.tag, member.user.avatarURL()) .setAuthor(member.user.tag, member.user.avatarURL())
.addField("Roles", member.roles.cache.map(r => `${r}`).join(' • ')) .addField("Roles", member.roles.cache.map(r => `${r}`).join(' • '))
.addField("Permissions", member.permissions.toArray().map(p => `${p}`).join(' • '))
.setColor("00c5ff") .setColor("00c5ff")
.setFooter(`User ID: ${member.user.id}`) .setFooter(`User ID: ${member.user.id}`)
.setTimestamp(); .setTimestamp();

Loading…
Cancel
Save