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 | 826626ab416d380c8b6c047f2bde7f2c38fff7aa (patch) | |
tree | db3b572faf654558e68e051707e66e9cef8373e8 | |
parent | Set util to use same typeorm as bundle (diff) | |
parent | Always display roles separately to online members (diff) | |
download | server-826626ab416d380c8b6c047f2bde7f2c38fff7aa.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 = []; |