Commit Graph

2054 Commits

Author SHA1 Message Date
ITOH 8c52abce7f add closeWS function 2021-04-15 16:46:44 +02:00
ITOH 2c97964f0f heartbeat change 2021-04-15 14:25:26 +02:00
ITOH f5d6a85882 uups 2021-04-15 13:22:22 +02:00
ITOH b2ed4b4f69 remove the as number 2021-04-15 13:22:14 +02:00
ITOH 43de5125d9 move buckets to ws in favour of createNextShard 2021-04-15 13:15:50 +02:00
ITOH 92622a10e0 use 3065 ? 2021-04-15 12:15:51 +02:00
ITOH a5fe03b3ba add doc link 2021-04-15 12:14:27 +02:00
ITOH 7f85fdbac5 add doc comment 2021-04-15 12:12:11 +02:00
ITOH a8cabc6967 only close if open 2021-04-15 12:06:12 +02:00
ITOH e95fcc9305 check if dc ack beat 2021-04-15 12:01:25 +02:00
ITOH e8a1bf68f8 Update heartbeat.ts 2021-04-15 11:51:54 +02:00
ITOH bd1a3aebc6 Merge branch 'main' into fix-ws-resume 2021-04-15 10:53:10 +02:00
ITOH cbed84e62c that wrong too 2021-04-15 09:53:04 +01:00
ITOH 53bbbdb4c6 Merge branch 'main' into fix-ws-resume 2021-04-15 10:49:11 +02:00
ITOH d669caa29e fix(ci): ayntee added too many = 2021-04-15 09:48:37 +01:00
ITOH 23779d7a89 better info comment 2021-04-15 10:42:00 +02:00
ITOH 6e02b14cdc Update resume.ts 2021-04-15 10:40:34 +02:00
ITOH 28ff1574d8 use setTimeout for heartbeat in favour of first random interval 2021-04-15 10:40:07 +02:00
ITOH 81a3bc3c26 Wait for a random amount of time between 1 and 5 seconds before resuming 2021-04-15 09:44:33 +02:00
ITOH 6e404876fd fix(ws): resume identify when oldShard is undefined 2021-04-15 09:35:00 +02:00
ITOH 1ff48bc446 add queueCounter 2021-04-15 09:15:35 +02:00
ITOH 62c2caed99 fix: spawnShards wrong loop debug data 2021-04-15 09:15:03 +02:00
ITOH f3f7eacc1c fix: don't reset ws.processQueue counter on every new loop 2021-04-15 09:14:40 +02:00
ITOH 6d497b1277 fix Discord Heartbeat request
We assume that discord only sends it while we don't have hit the 120 request limit
2021-04-15 09:13:52 +02:00
ITOH 64034b9e7d Merge pull request #861 from discordeno/fix-ready-handle-delay
fix: move createNextShard to ws
2021-04-14 23:16:04 +02:00
Skillz4Killz ff5d086562 fix: move createNextShard to ws 2021-04-14 20:23:58 +00:00
ITOH de93b0ae20 Merge pull request #859 from discordeno/ws-fixxxxxxeessssssss
fix some ws things (better title later when I found and finished fixing stuff)
2021-04-14 21:13:13 +02:00
ITOH 07587f42a1 queueStartedAt 2021-04-14 21:05:40 +02:00
ITOH 3f77e8e9e1 Update process_queue.ts 2021-04-14 21:00:11 +02:00
ITOH 6a0f2fdef5 Update resume.ts 2021-04-14 20:59:51 +02:00
Skillz4Killz f223d654bd Commit from GitHub Actions (Lint) 2021-04-14 18:55:58 +00:00
Skillz4Killz 29e682ed30 fix: random heartbeat request 2021-04-14 18:55:30 +00:00
ITOH 1235a08f29 Merge branch 'main' into ws-fixxxxxxeessssssss 2021-04-14 20:54:40 +02:00
Skillz4Killz dc27bc3da1 fix: delay each shard by 5 seconds 2021-04-14 18:06:41 +00:00
Skillz4Killz 70a4a1f955 fix: use private close clode 2021-04-14 18:06:11 +00:00
ITOH 1019a05cc4 bug 2021-04-14 19:23:26 +02:00
ITOH 4c097d4e17 add queueMinuteTimestamp 2021-04-14 19:10:55 +02:00
ITOH 54ce040120 fix old interval continues after new identify 2021-04-14 18:30:59 +02:00
ITOH 74f874482e just beat ws directly 2021-04-14 18:24:36 +02:00
ITOH 41a0ce0a4e reserve 2 calls for heartbeating 2021-04-14 18:07:39 +02:00
ayntee b92c94bc2d ci(deploy): use add-and-commit 2021-04-14 18:16:20 +04:00
TriForMine d3e5f537d3 tests: add invites tests (#855)
* tests: add invites tests

Co-authored-by: TriForMine <TriForMine@users.noreply.github.com>
2021-04-14 08:26:39 +01:00
ITOH 3dd75098b1 Merge pull request #854 from discordeno/discord-prs
Discord prs
2021-04-14 09:21:10 +02:00
ITOH 4e9295c71e Merge branch 'main' into discord-prs 2021-04-14 09:17:33 +02:00
ayntee a854219b81 feat: add support for stage channels (#728)
* feat: add support for stage channels

* idk

* Add helpers for voice state

* Rename updateUserVoiceState() to updateVoiceState()

* Update src/types/channels/channel_types.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/guilds/update_user_voice_state.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/guilds/update_bot_voice_state.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
2021-04-14 11:11:22 +04:00
ITOH 3c85b16cfe Update mod.ts 2021-04-14 09:05:18 +02:00
ITOH 8098910d3d remove broken imports 2021-04-14 09:02:00 +02:00
ITOH ea221bba5a https://github.com/discord/discord-api-docs/pull/2800 2021-04-14 08:51:54 +02:00
ITOH e3442f01b7 https://github.com/discord/discord-api-docs/pull/2799 2021-04-14 08:51:24 +02:00
ITOH 381556cb5a https://github.com/discord/discord-api-docs/pull/2790 2021-04-14 08:50:38 +02:00