🐛 fix member roles + list

This commit is contained in:
Flam3rboy
2021-09-03 13:23:20 +02:00
parent f83f4416b8
commit a446837679
4 changed files with 9 additions and 13 deletions
+2 -2
View File
@@ -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 });