Skip to content

Commit

Permalink
Store resume_gateway_url
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorukyum committed Aug 10, 2022
1 parent 9ebeaca commit edc605d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions discord/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def __init__(self, socket, *, loop):
# ws related stuff
self.session_id = None
self.sequence = None
self.resume_gateway_url = None
self._zlib = zlib.decompressobj()
self._buffer = bytearray()
self._close_code = None
Expand Down Expand Up @@ -511,6 +512,7 @@ async def received_message(self, msg, /):
self._trace = trace = data.get("_trace", [])
self.sequence = msg["s"]
self.session_id = data["session_id"]
self.resume_gateway_url = data["resume_gateway_url"]
# pass back shard ID to ready handler
data["__shard_id__"] = self.shard_id
_log.info(
Expand Down

0 comments on commit edc605d

Please sign in to comment.