diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-16 13:35:35 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-16 13:35:35 +1000 |
commit | 1f1d1ee3d42da2ba905c87ccf5a24af6ced62bed (patch) | |
tree | dca280b79c8de887a531132ad4ab691e8fd4668f | |
parent | Set util to use same typeorm as bundle (diff) | |
parent | Always display roles separately to online members (diff) | |
download | server-1f1d1ee3d42da2ba905c87ccf5a24af6ced62bed.tar.xz |
Merge branch 'feat/offlineMembers' into slowcord
-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..de5d898a 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.slice(member_roles.findIndex(x => x.id == guild_id))[0]); // move @everyone/online to bottom const offlineItems = []; |