diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-16 13:34:51 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-16 13:42:03 +1000 |
commit | 296c570ecba9cea62288b265af6964ae5f49a3a0 (patch) | |
tree | 2a2e2eef83a503c60b897b92e382fb89d26a8fce /gateway/src/opcodes/LazyRequest.ts | |
parent | Better implementation of offline member group in lazy request (diff) | |
download | server-296c570ecba9cea62288b265af6964ae5f49a3a0.tar.xz |
Always display roles separately to online members
Diffstat (limited to '')
-rw-r--r-- | gateway/src/opcodes/LazyRequest.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gateway/src/opcodes/LazyRequest.ts b/gateway/src/opcodes/LazyRequest.ts index 7503ee61..2bff1fd3 100644 --- a/gateway/src/opcodes/LazyRequest.ts +++ b/gateway/src/opcodes/LazyRequest.ts @@ -41,6 +41,7 @@ async function getMembers(guild_id: string, range: [number, number]) { .map((m) => m.roles) .flat() .unique((r: Role) => r.id); + member_roles.push(member_roles.splice(member_roles.findIndex(x => x.id == guild_id))[0]); // move @everyone/online to bottom const offlineItems = []; |