ws_params.update(sequence=self.ws.sequence,initial=False,resume=True,session=self.ws.session_id)# type: ignore # These are always present at this point
ws_params.update(
sequence=self.ws.sequence,
gateway=self.ws.gateway,
initial=False,
resume=True,
session=self.ws.session_id,
)
continue
continue
# We should only get this when an unhandled close code happens,
# We should only get this when an unhandled close code happens,
@ -821,7 +829,12 @@ class Client:
# Always try to RESUME the connection
# Always try to RESUME the connection
# If the connection is not RESUME-able then the gateway will invalidate the session
# If the connection is not RESUME-able then the gateway will invalidate the session
# This is apparently what the official Discord client does
# This is apparently what the official Discord client does
ws_params.update(sequence=self.ws.sequence,resume=True,session=self.ws.session_id)# type: ignore # These are always present at this point