Commit Graph

286 Commits

Author SHA1 Message Date
Rory& 3687202788 Gateway: get around some typeorm weirdness 2026-04-18 18:26:34 +02:00
Rory& 99a6de0cdb Explicitly specify status for temp sessions, since that suddenly broke...? 2026-04-13 23:24:24 +02:00
Rory& dfc4776a65 Fix op19 property not found error 2026-04-13 23:11:17 +02:00
Rory& e0204f76cf Make presence clear async, clean up temp session code 2026-04-13 22:41:57 +02:00
Rory& 05fba68bb3 Presence disconnect works! 2026-04-13 18:58:21 +02:00
Rory& 10a973eced Time out presence
Sourced from #1541

Co-authored-by: Davide <137603413+LW-Davide@users.noreply.github.com>
2026-04-13 16:00:10 +02:00
Rory& ad245d029f Mark users as offline when gateway connection is closed
Part of #1541

Co-authored-by: Davide <137603413+LW-Davide@users.noreply.github.com>
2026-04-13 15:55:32 +02:00
Rory& ad55d0aa93 prep for presence 2026-04-13 15:42:44 +02:00
Rory& 0ae2ccff5f Emit presence on identify, support deduped gw events 2026-04-13 14:08:29 +02:00
Oh64 07bdc337eb revert the change on ElapsedTime read-only class 2026-04-06 14:27:43 +02:00
Oh64 8ab1fd9707 use arrayGroupBy, include group time in query traces 2026-04-06 14:27:43 +02:00
Oh64 d32c75d164 Refactor Identify : batch guild queries and parallelise relation fetches 2026-04-06 14:27:43 +02:00
Rory& 47e782ad62 Fix voice state query trying to include member 2026-03-21 16:22:06 +01:00
Rory& 9e4274512a Migrate ReadyEventData to satisfies, part of #1577 2026-03-20 18:17:47 +01:00
Rory& 66bed974ff Migrate Stream*Event to satisfies, part of #1577 2026-03-20 18:17:47 +01:00
Rory& bd42196733 Migrate PresenceUpdateEvent to satisfies, part of #1577 2026-03-20 18:17:47 +01:00
Rory& 9597ebe941 Migrate VoiceS*Event to satisfies, part of #1577 2026-03-20 18:17:41 +01:00
MathMan05 5e2d0fac01 merge the functions 2026-03-20 16:31:32 +01:00
MathMan05 3126b4bdf0 remove weird debugging 2026-03-20 16:31:32 +01:00
MathMan05 26208390a6 a lot of small fixes 2026-03-20 16:31:32 +01:00
MathMan05 c718da5e98 it ain't async 2026-03-20 16:31:32 +01:00
MathMan05 2ff656ef03 sign 'em 2026-03-20 16:31:32 +01:00
Rory& 0b1d12d968 Some minor work 2026-03-14 06:13:32 +01:00
Rory& 8bb0b84b5e Shorten imports 2026-03-14 05:43:42 +01:00
Rory& e0783f7595 Remove unused imports for non-entities 2026-03-14 04:24:04 +01:00
Rory& 0370985a4e Clean up some type guards 2026-03-14 04:09:37 +01:00
Rory& a451f92e67 properly mark unused params 2026-03-14 03:59:28 +01:00
Rory& b5e63c06b6 Qodana: fix async warnings 2026-03-14 03:26:26 +01:00
Rory& 1e07c1eaa2 gateway offload work 2026-03-13 10:14:29 +01:00
Rory& fc5716ea77 identify: use proto toVoiceState 2026-03-13 09:34:21 +01:00
Rory& 1e82f2f1f8 gateway: util function to do gateway offload stuff 2026-03-13 06:09:27 +01:00
Rory& 3fdc6a54aa Gateway: add SB_SESSION_CLOSE and SB_SESSION_INVALIDATE events 2026-03-13 03:45:26 +01:00
Rory& bf778e5133 Gateway: allow addressing dispatch events to specific sessions 2026-03-13 03:24:12 +01:00
Rory& 2f1c0ba2d4 Gateway: include entity counts in trace names 2026-03-12 21:52:34 +01:00
Rory& 6ed97ea2d1 Factor out getMostRelevantSession 2026-03-12 21:34:27 +01:00
Rory& ba78ed8e6a fix op43 2026-03-12 03:25:03 +01:00
Rory& 7341d1f66f Gateway: implement op43 2026-03-12 02:34:16 +01:00
Rory& d5dd74fc91 requestguildmembers: immediately send data instead of buffering 2026-03-11 02:23:32 +01:00
Rory& 2536201ca5 requestguildmembers: dont forget user relation, lol 2026-03-11 02:10:05 +01:00
Rory& 2ae4842bd1 requestguildmembers: assign presence list directly without for loop 2026-03-11 02:05:14 +01:00
Rory& c76e1cebd7 requestguildmembers: select only relevant data 2026-03-11 01:55:39 +01:00
Rory& afebcde105 requestguildmembers: track member count properly 2026-03-11 01:51:31 +01:00
Rory& ed315b028b requestguildmembers: log chunks 2026-03-11 01:51:31 +01:00
Rory& 2b981c83ea requestguildmembers: bulk query sessions 2026-03-11 01:51:31 +01:00
dank074 43f2b8de58 when guild region is misconfigured, fallback to default region 2026-03-07 01:40:12 +01:00
dank074 e843d499ec gateway should not crash for clients that send Op 37 with missing channel ranges, instead ignore 2026-03-07 01:38:45 +01:00
Rory& f8124dc2f4 oooops 2026-03-06 02:27:23 +01:00
Rory& 378f907dce actually backpropagate session id in identify to ws object 2026-03-06 00:59:24 +01:00
Rory& 3f756629e6 Log creation of new sessions, fix some comments 2026-03-06 00:25:59 +01:00
Rory& b5c376881d Inline pointless const for session_id 2026-03-06 00:19:02 +01:00