summary refs log tree commit diff
path: root/gateway
diff options
context:
space:
mode:
authorAlTech98 <altech123159@gmail.com>2021-09-03 13:36:22 +0200
committerAlTech98 <altech123159@gmail.com>2021-09-03 13:36:22 +0200
commit2028cc8e0b6b462e59ce6e4b537324114ec2458e (patch)
treeee04a9f6978bec8b21776a988bd9ca2393056d72 /gateway
parentVoiceState fix for db update (diff)
parent:bug: fix member roles + list (diff)
downloadserver-2028cc8e0b6b462e59ce6e4b537324114ec2458e.tar.xz
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'gateway')
-rw-r--r--gateway/src/opcodes/LazyRequest.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/gateway/src/opcodes/LazyRequest.ts b/gateway/src/opcodes/LazyRequest.ts
index e035e6bb..b7ee9a96 100644
--- a/gateway/src/opcodes/LazyRequest.ts
+++ b/gateway/src/opcodes/LazyRequest.ts
@@ -33,7 +33,7 @@ export async function onLazyRequest(this: WebSocket, { d }: Payload) {
 	const roles = await Role.find({
 		where: { guild_id: guild_id },
 		order: {
-			position: "ASC",
+			position: "DESC",
 		},
 	});
 
@@ -47,7 +47,7 @@ export async function onLazyRequest(this: WebSocket, { d }: Payload) {
 		);
 		const group = {
 			count: role_members.length,
-			id: role.id === guild_id ? "online" : role.name,
+			id: role.id === guild_id ? "online" : role.id,
 		};
 
 		items.push({ group });