diff options
author | AlTech98 <altech123159@gmail.com> | 2021-09-03 13:36:22 +0200 |
---|---|---|
committer | AlTech98 <altech123159@gmail.com> | 2021-09-03 13:36:22 +0200 |
commit | f6f87ef90665094330827a56431da7461cb32a7d (patch) | |
tree | 52eac9d32db8e03d654e06a3eb35883653969581 /gateway/src/opcodes | |
parent | VoiceState fix for db update (diff) | |
parent | :bug: fix member roles + list (diff) | |
download | server-f6f87ef90665094330827a56431da7461cb32a7d.tar.xz |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'gateway/src/opcodes')
-rw-r--r-- | gateway/src/opcodes/LazyRequest.ts | 4 |
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 }); |