Commit Graph

963 Commits

Author SHA1 Message Date
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
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
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
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
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
ITOH
24c567413c https://github.com/discord/discord-api-docs/pull/2753 2021-04-14 08:50:04 +02:00
ITOH
af961bbfa8 Update webhook.ts 2021-04-14 08:47:51 +02:00
ITOH
1fd4d54f90 https://github.com/discord/discord-api-docs/pull/2762 2021-04-14 08:47:47 +02:00
ITOH
695492e2b2 https://github.com/discord/discord-api-docs/pull/2754 2021-04-14 08:47:24 +02:00
ITOH
8f0a3d564d https://github.com/discord/discord-api-docs/pull/2789 2021-04-13 22:59:21 +02:00
ITOH
56b66c496e https://github.com/discord/discord-api-docs/pull/2620 2021-04-13 22:56:13 +02:00
ITOH
00c1ae1f75 https://github.com/discord/discord-api-docs/pull/2690 2021-04-13 22:53:51 +02:00
ITOH
c226fc2488 https://github.com/discord/discord-api-docs/pull/2692 2021-04-13 22:46:52 +02:00
ITOH
328bc554b8 https://github.com/discord/discord-api-docs/pull/2703 2021-04-13 22:45:16 +02:00
ITOH
3061f4ff0f 0x100000000 2021-04-13 22:42:40 +02:00
ITOH
08e3f6251a https://github.com/discord/discord-api-docs/pull/2694 2021-04-13 22:40:33 +02:00
ITOH
2de4d127a7 https://github.com/discord/discord-api-docs/pull/2720 2021-04-13 22:37:28 +02:00
ITOH
acba65e25b https://github.com/discord/discord-api-docs/pull/2740 2021-04-13 22:35:56 +02:00
ITOH
5b518fc1d7 https://github.com/discord/discord-api-docs/pull/2087 2021-04-13 22:32:36 +02:00
ITOH
32f8b3d8ea https://github.com/discord/discord-api-docs/pull/2685 2021-04-13 22:26:58 +02:00
ITOH
6bfafa852f https://github.com/discord/discord-api-docs/pull/2684 2021-04-13 22:24:35 +02:00