mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Fix default role showing up in user info embed
This commit is contained in:
parent
7054412640
commit
7e179bb06c
1 changed files with 1 additions and 3 deletions
|
@ -101,9 +101,7 @@ export async function getUserInfoEmbed(
|
|||
largest: 2,
|
||||
round: true,
|
||||
});
|
||||
const roles = member.roles.cache
|
||||
.map(role => pluginData.guild.roles.cache.get(role.id))
|
||||
.filter((r): r is Role => !!r);
|
||||
const roles = Array.from(member.roles.cache.values()).filter(r => r.id !== pluginData.guild.id);
|
||||
roles.sort(sorter("position", "DESC"));
|
||||
|
||||
embed.fields.push({
|
||||
|
|
Loading…
Add table
Reference in a new issue