forked from Galactic/galactic-bot
bugfix
This commit is contained in:
parent
ba3d7dd166
commit
d81553e668
@ -114,7 +114,7 @@ class InformationCommand extends SlashCommand {
|
|||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
const roles = member.roles.cache.filter((r) => r.name !== '@everyone').sort((a, b) => b.rawPosition - a.rawPosition);
|
const roles = [...member.roles.cache.filter((r) => r.name !== '@everyone').sort((a, b) => b.rawPosition - a.rawPosition).values()];
|
||||||
const maxRoles = 30;
|
const maxRoles = 30;
|
||||||
|
|
||||||
if (roles.size > 0) {
|
if (roles.size > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user