This repository has been archived by the owner on Dec 26, 2022. It is now read-only.
🐛 gateway no longer starts multiple instances #354
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
fixed
: Disconnect bug where it started 5k times 💀 should be patchedTested for ~5 hours at the time of making this PR and I forced a reconnect by unplugging my wifi xD to make sure it went smoothly.
Opcode 9 hasn't been tested since I haven't gotten the payload. Should work as it functions the same as the heartbeat disconnect.
Notes
close code 1001 was changed to 4000 because 1001 would turn the bot offline. 4000 is also a websocket close close officially available to application, discord uses it for unknown disconnects, and it isn't 1000.
__should_reconnect
was renamed to__should_resume
because that was what it actually did.Line 325 was changed because I missed that in the docs when I read it the first time.
Check off the following