summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-16 13:35:35 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-16 13:35:35 +1000
commit826626ab416d380c8b6c047f2bde7f2c38fff7aa (patch)
treedb3b572faf654558e68e051707e66e9cef8373e8
parentSet util to use same typeorm as bundle (diff)
parentAlways display roles separately to online members (diff)
downloadserver-826626ab416d380c8b6c047f2bde7f2c38fff7aa.tar.xz
Merge branch 'feat/offlineMembers' into slowcord
-rw-r--r--gateway/src/opcodes/LazyRequest.ts1
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 = [];