From 4d34f19d859f903d41c8cae3d8ab58cde92a2c6e Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 11 Feb 2020 15:47:56 -0500 Subject: [PATCH] Fix --- commands/info/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/info/user.js b/commands/info/user.js index ee6143d8..edd1d567 100644 --- a/commands/info/user.js +++ b/commands/info/user.js @@ -39,7 +39,7 @@ module.exports = class UserCommand extends Command { try { const member = await msg.guild.members.fetch(user.id); const defaultRole = msg.guild.roles.cache.get(msg.guild.id); - const roles = member.roles + const roles = member.roles.cache .filter(role => role.id !== defaultRole.id) .sort((a, b) => b.position - a.position) .map(role => role.name);