summary refs log tree commit diff
path: root/gateway/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-16 13:42:19 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-16 13:42:19 +1000
commit0024e9158c599dfa672f9002879f4530015d72c5 (patch)
tree0e85552fe3dbb001c7b3abcd7610ebc9818f7ecc /gateway/src
parentMerge branch 'feat/offlineMembers' into slowcord (diff)
parentAlways display roles separately to online members (diff)
downloadserver-0024e9158c599dfa672f9002879f4530015d72c5.tar.xz
Merge branch 'feat/offlineMembers' into slowcord
Diffstat (limited to 'gateway/src')
-rw-r--r--gateway/src/opcodes/LazyRequest.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/gateway/src/opcodes/LazyRequest.ts b/gateway/src/opcodes/LazyRequest.ts
index de5d898a..2bff1fd3 100644
--- a/gateway/src/opcodes/LazyRequest.ts
+++ b/gateway/src/opcodes/LazyRequest.ts
@@ -41,7 +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
+	member_roles.push(member_roles.splice(member_roles.findIndex(x => x.id == guild_id))[0]);	// move @everyone/online to bottom
 
 	const offlineItems = [];