Skip to content

Commit

Permalink
Docs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfies committed Dec 2, 2024
1 parent 1a49809 commit 1363435
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions discord/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ class Client:
A number of options can be passed to the :class:`Client`.
.. versionchanged:: 2.1
Removed the ``http_trace`` parameter.
Parameters
-----------
max_messages: Optional[:class:`int`]
Expand Down
3 changes: 1 addition & 2 deletions discord/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,5 @@ def __init__(self, code: Optional[int] = None, reason: Optional[str] = None):
# This exception is just the same exception except
# reconfigured to subclass ClientException for users
self.code: int = code or -1
# aiohttp doesn't seem to consistently provide close reason
self.reason: str = reason or ''
self.reason: str = reason or 'unknown'
super().__init__(f'WebSocket closed with {self.code} (reason: {self.reason!r})')
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
'py': ('https://docs.python.org/3', None),
'aio': ('https://docs.aiohttp.org/en/stable/', None),
'req': ('https://requests.readthedocs.io/en/latest/', None),
'curl': ('https://curl-cffi.readthedocs.io/en/latest/', None),
'curl_cffi': ('https://curl-cffi.readthedocs.io/en/latest/', None),
}

rst_prolog = """
Expand Down

0 comments on commit 1363435

Please sign in to comment.