summary refs log tree commit diff
path: root/gateway/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-03 13:23:20 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-03 13:23:20 +0200
commita446837679c2b29ba751efb8c3e5d00ef0b13f00 (patch)
tree4990e1e30ebcab29cedc31e1bb67a5ca676339bc /gateway/src
parent:bug: fix member has no roles in guild create (diff)
downloadserver-a446837679c2b29ba751efb8c3e5d00ef0b13f00.tar.xz
:bug: fix member roles + list
Diffstat (limited to 'gateway/src')
-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 });