Skip to content

Commit

Permalink
Merge branch 'master' into pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorukyum authored Jan 1, 2024
2 parents d6b4e28 + 8af8454 commit 0f1931d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ These changes are available on the `master` branch, but have not yet been releas
([#2257](https://github.com/Pycord-Development/pycord/issues/2257))
- Fixed `AuditLogIterator` not respecting the `after` parameter.
([#2295](https://github.com/Pycord-Development/pycord/issues/2295))
- Fixed `AttributeError` when failing to establish initial websocket connection.
([#2301](https://github.com/Pycord-Development/pycord/pull/2301))

## [2.4.1] - 2023-03-20

Expand Down
2 changes: 2 additions & 0 deletions discord/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,8 @@ async def connect(self, *, reconnect: bool = True) -> None:
# Always try to RESUME the connection
# If the connection is not RESUME-able then the gateway will invalidate the session.
# This is apparently what the official Discord client does.
if self.ws is None:
continue
ws_params.update(
sequence=self.ws.sequence, resume=True, session=self.ws.session_id
)
Expand Down
4 changes: 2 additions & 2 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ pylint~=3.0.3
pytest~=7.4.3
pytest-asyncio~=0.23.2
# pytest-order~=1.0.1
mypy~=1.7.1
coverage~=7.3
mypy~=1.8.0
coverage~=7.4
pre-commit==3.5.0
codespell==2.2.6
bandit==1.7.6
Expand Down

0 comments on commit 0f1931d

Please sign in to comment.