summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-16 13:34:51 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-16 13:35:18 +1000
commite39e1e52295aa172e420e72d20788bdedb26cc14 (patch)
tree3fefaea745e1910549d14cd594b38a8cc1d48e2b
parentBetter implementation of offline member group in lazy request (diff)
downloadserver-e39e1e52295aa172e420e72d20788bdedb26cc14.tar.xz
Always display roles separately to online members
-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 = [];