This commit is contained in:
Erik 2022-08-09 17:51:44 +03:00
parent ba3d7dd166
commit d81553e668
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -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) {