summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-04-13 16:00:10 +0200
committerRory& <root@rory.gay>2026-04-13 16:00:10 +0200
commit10a973eced05f1ae7224712c1e518add5028a72a (patch)
treea421e27dcaf38030984f264d1cbcca8151a6dd17
parentMark users as offline when gateway connection is closed (diff)
downloadserver-ts-10a973eced05f1ae7224712c1e518add5028a72a.tar.xz
Time out presence
Sourced from #1541

Co-authored-by: Davide <137603413+LW-Davide@users.noreply.github.com>
-rw-r--r--src/gateway/opcodes/GuildSync.ts4
-rw-r--r--src/gateway/opcodes/LazyRequest.ts4
-rw-r--r--src/util/util/index.ts1
3 files changed, 5 insertions, 4 deletions
diff --git a/src/gateway/opcodes/GuildSync.ts b/src/gateway/opcodes/GuildSync.ts

index 9a6260e7..04d3de56 100644 --- a/src/gateway/opcodes/GuildSync.ts +++ b/src/gateway/opcodes/GuildSync.ts
@@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { Member, Session, Presence, timePromise, Stopwatch, Config } from "@spacebar/util"; -import { WebSocket, Payload, OPCODES, Send, getMostRelevantSession, handleOffloadedGatewayRequest } from "@spacebar/gateway"; +import { Member, Session, Presence, timePromise, Stopwatch, Config, getMostRelevantSession } from "@spacebar/util"; +import { WebSocket, Payload, OPCODES, Send, handleOffloadedGatewayRequest } from "@spacebar/gateway"; import { PublicMember } from "@spacebar/schemas"; import { In } from "typeorm"; diff --git a/src/gateway/opcodes/LazyRequest.ts b/src/gateway/opcodes/LazyRequest.ts
index cb465cf0..cfa1e7b2 100644 --- a/src/gateway/opcodes/LazyRequest.ts +++ b/src/gateway/opcodes/LazyRequest.ts
@@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { getDatabase, getPermission, listenEvent, Member, Role, Session, User, Presence, Channel, Permissions, arrayPartition } from "@spacebar/util"; -import { WebSocket, Payload, handlePresenceUpdate, OPCODES, Send, getMostRelevantSession } from "@spacebar/gateway"; +import { getDatabase, getPermission, listenEvent, Member, Role, Session, User, Presence, Channel, Permissions, arrayPartition, getMostRelevantSession } from "@spacebar/util"; +import { WebSocket, Payload, handlePresenceUpdate, OPCODES, Send } from "@spacebar/gateway"; import murmur from "murmurhash-js/murmurhash3_gc"; import { check } from "./instanceOf"; import { LazyRequestSchema } from "@spacebar/schemas"; diff --git a/src/util/util/index.ts b/src/util/util/index.ts
index 4c243ade..368fcc50 100644 --- a/src/util/util/index.ts +++ b/src/util/util/index.ts
@@ -56,3 +56,4 @@ export * from "./extensions"; export * from "./Random"; export * from "./Url"; export * from "./Version"; +export * from "./Presence";