Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Invalid Session opcode description #5296

Closed
wants to merge 1 commit into from
Closed

Conversation

Zoddo
Copy link
Contributor

@Zoddo Zoddo commented Aug 7, 2022

As noticed during a conversation on the Discord API server, there is currently an inconsistency between the "Opcodes and Status Codes" and "Gateway" pages.

The former says that we should reconnect on OP9 before reidentifying/resuming, while the later doesn't mention this.
The end of the Gateway#resuming section even says that we should only wait a random amount of time before identifying, and doesn't mention reconnecting.

This inconsistency was introduced by #1373 (a user-made rewording/formatting cleanup of this page).

On our bot, we are always reidentifying/resuming over the existing gateway connection without any issue.
I've also looked at Eris, which also reidentify over the existing connection.

Therefore I believe that reconnecting is actually not necessary. The wording I'm removing has likely been added by error in the aforementioned PR.

There are currently some inconsistencies between the "Opcodes and Status Codes" and "Gateway" pages.

The former says that we should reconnect on OP7 before reidentifying/resuming, while the later doesn't mention this.
The end of the Gateway#resuming section even says that we should only wait a random amount of time before identifying, but doesn't mention reconnecting.

This inconsistency was introduced by discord#1373 (a user-made rewording/formatting cleanup of this page).

On our bot, we are always reidentifying/resuming over the existing gateway connection without any issue.
I've also looked at Eris, which also reidentify over the existing connection.

Therefore I believe that reconnecting is, in fact, not necessary. The wording I'm removing has likely been added by error.
@Zoddo
Copy link
Contributor Author

Zoddo commented Aug 15, 2022

Closing this PR because this info is now accurate with the upcoming change with the resume_gateway_url: #5282 (comment)

@Zoddo Zoddo closed this Aug 15, 2022
@Zoddo Zoddo deleted the patch-1 branch August 15, 2022 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant