diff --git a/src/structure/components/commands/information/Info.js b/src/structure/components/commands/information/Info.js index 9ae2444..411d644 100644 --- a/src/structure/components/commands/information/Info.js +++ b/src/structure/components/commands/information/Info.js @@ -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; if (roles.size > 0) {