Commit Graph

36 Commits

Author SHA1 Message Date
spiral
32a73eef09
feat: update to Discord API v10 2022-02-26 16:28:20 -05:00
spiral
c6e4c862b8
feat: update Discord status only on identify
See <https://github.com/discord/discord-api-docs/issues/4073#issuecomment-1016762755>

We still update status when restarting cluster, because it doesn't really matter if the session dies in that case (we're already restarting / going to reidentify)
2022-01-20 05:52:40 -05:00
spiral
426d753827
feat: tweak durations in Redis gateway ratelimiter 2022-01-19 18:01:42 -05:00
spiral
47e15e3acb
feat: add a couple missing Discord types 2022-01-13 12:28:44 -05:00
spiral
2aead40449
feat: add Redis identify ratelimiter 2022-01-13 12:26:25 -05:00
spiral
22feedd5dc
Revert "feat: query identify ratelimiter when identifying instead of when connecting websocket"
This reverts commit 5627fa9864.
2022-01-08 09:08:32 -05:00
spiral
5627fa9864
feat: query identify ratelimiter when identifying instead of when connecting websocket 2021-12-26 01:46:25 -05:00
spiral
40acd9370c
feat: lower timeout in twilight gateway ratelimiter 2021-12-26 01:42:47 -05:00
spiral
9ab1a873e5
feat: log shard ID in ShardConnection logs 2021-12-23 22:46:38 -05:00
spiral
fc5825a941
fix twilight gateway ratelimiter 2021-12-23 22:02:45 -05:00
spiral
04d78e3348
refactor: remove some unused code 2021-11-26 21:14:09 -05:00
spiral
1918c56937
feat: upgrade to .NET 6, refactor everything 2021-11-26 21:10:56 -05:00
spiral
7a5ba8246e
refactor: cache own user ID in IDiscordCache
- remove Cluster.User
- remove Cluster.Application (it was only being used as an alternative to Cluster.User for some reason)
- move Bot.PermissionsIn to DiscordCacheExtensions
2021-11-21 19:42:35 -05:00
Ske
b9d090d8cf Don't hang shard startup for too long 2021-09-07 02:21:46 +02:00
Ske
6dfc937257 Attempted fix for concurrent shard startup 2021-09-07 02:17:41 +02:00
spiral
ac2671452d
run dotnet format 2021-08-27 11:03:47 -04:00
Ske
0b0ea5af1c Only hang shard startup until sending identify 2021-08-12 09:05:02 +02:00
Ske
8de6960335 Add HTTP timeout/retry to Twilight rate limiter 2021-08-12 08:59:48 +02:00
Ske
1f2b9f998d Preliminary support for APIv9 and threads 2021-07-15 12:41:19 +02:00
spiral
889e1a8331
Don't kill the gateway session when trying to resume
Sending a close code of 1000 or 1001 invalidates gateway sessions.
Instead, we use close code 1005 (no error specified)
2021-07-08 09:19:44 -04:00
Ske
ae82bb4168 Updates to Elastic logging 2021-06-10 14:21:05 +02:00
Ske
26dc69e5a4 Add support for Twilight gateway queue 2021-06-09 16:22:10 +02:00
Ske
333530d24d Add a little leeway to shard identifying 2021-06-09 14:49:26 +02:00
Ske
d61f61fead Add basic support for multi-node clustering 2021-06-09 14:49:12 +02:00
Ske
6ea1309ae0 Attempt at a more resilient shard handler
Signed-off-by: Ske <voltasalt@gmail.com>
2021-06-09 12:26:15 +02:00
Ske
118f2d49a6 WIP new shard implementation 2021-06-08 10:19:54 +02:00
Ske
c5f56cd7dd Add correct serialization for gateway user status 2021-03-21 14:38:28 +01:00
Ske
13e3289c26 Add config option for max shard concurrency 2021-03-18 09:47:58 +01:00
Ske
e7ae9dbe44 Respect shard concurrency limit 2021-02-01 14:26:39 +01:00
Ske
5a52abed77 Convert Sentry enrichers 2021-01-31 14:50:10 +01:00
Ske
0c1bb6cc6a Convert message update handler 2021-01-31 14:42:28 +01:00
Ske
d56e878c28 Converted shard and logclean service 2021-01-30 01:07:43 +01:00
Ske
da9d84a197 Get rid of more D#+ references 2021-01-15 11:29:43 +01:00
Ske
9079f1c59c Port the DM stuff 2020-12-25 13:58:45 +01:00
Ske
47b16dc51b Port more things! 2020-12-24 14:52:44 +01:00
Ske
a6fbd869be Initial commit, basic proxying working 2020-12-22 13:15:26 +01:00