Browse Source

Use cache to map roles

master
Abheek Dhawan 4 years ago
parent
commit
4bc986c7af
  1. 2
      index.js

2
index.js

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

Loading…
Cancel
Save