summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-03-13 03:45:26 +0100
committerRory& <root@rory.gay>2026-03-13 03:45:26 +0100
commit3fdc6a54aa57338474c8f638d26fddd2c367d4d9 (patch)
treeb46077a55b30bb77389eea67552fabeee47a58b6 /src/util
parentGateway: allow addressing dispatch events to specific sessions (diff)
downloadserver-ts-3fdc6a54aa57338474c8f638d26fddd2c367d4d9.tar.xz
Gateway: add SB_SESSION_CLOSE and SB_SESSION_INVALIDATE events
Diffstat (limited to 'src/util')
-rw-r--r--src/util/interfaces/Event.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/interfaces/Event.ts b/src/util/interfaces/Event.ts

index 6971a61a..28ae0b54 100644 --- a/src/util/interfaces/Event.ts +++ b/src/util/interfaces/Event.ts
@@ -60,6 +60,7 @@ export interface Event { event: EVENT; // eslint-disable-next-line @typescript-eslint/no-explicit-any data?: any; + reconnect_delay?: number; origin?: string; } @@ -848,4 +849,4 @@ export type EVENT = | "THREAD_MEMBERS_UPDATE" | CUSTOMEVENTS; -export type CUSTOMEVENTS = "INVALIDATED" | "RATELIMIT"; +export type CUSTOMEVENTS = "INVALIDATED" | "RATELIMIT" | "SB_SESSION_REMOVE" | "SB_SESSION_CLOSE";