From d81553e6687815d7062ad481e13f1192c0ee9927 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Tue, 9 Aug 2022 17:51:44 +0300 Subject: [PATCH] bugfix --- src/structure/components/commands/information/Info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {