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:42:03 +1000
commit5ae6cdff9cb45df78dbbc7e87177959fc50c780a (patch)
tree6126dbb22c0f49f3293d547a812daba1f641b6fe
parentBetter implementation of offline member group in lazy request (diff)
downloadserver-5ae6cdff9cb45df78dbbc7e87177959fc50c780a.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..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 = [];