mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 15:22:43 +00:00
3 files changed
+12
-11
No files matched your search
Generated
BIN
Binary file not shown.
+1
-1
@@ -13,7 +13,7 @@
|
||||
"author": "Fosscord",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@fosscord/server-util": "^1.3.3",
|
||||
"@fosscord/server-util": "^1.3.7",
|
||||
"ajv": "^8.5.0",
|
||||
"dotenv": "^8.2.0",
|
||||
"jsonwebtoken": "^8.5.1",
|
||||
|
||||
+11
-10
@@ -70,15 +70,16 @@ export async function onLazyRequest(this: WebSocket, { d }: Payload) {
|
||||
const items = [];
|
||||
|
||||
for (const role of roles) {
|
||||
items.push({
|
||||
group: {
|
||||
count: role.members.length,
|
||||
id: role.id,
|
||||
},
|
||||
});
|
||||
for (const member of role.members) {
|
||||
items.push({ member });
|
||||
}
|
||||
items.push({
|
||||
group: {
|
||||
count: role.members.length,
|
||||
id: role.id === guild_id ? "online" : role.name
|
||||
}
|
||||
});
|
||||
for (const member of role.members) {
|
||||
member.roles.remove(guild_id);
|
||||
items.push({ member });
|
||||
}
|
||||
}
|
||||
|
||||
return Send(this, {
|
||||
@@ -90,7 +91,7 @@ export async function onLazyRequest(this: WebSocket, { d }: Payload) {
|
||||
{
|
||||
range: [0, 99],
|
||||
op: "SYNC",
|
||||
items: items,
|
||||
items,
|
||||
},
|
||||
],
|
||||
online_count: member_count, // TODO count online count
|
||||
|
||||
Reference in new issue
Block a user