aboutsummaryrefslogtreecommitdiff
path: root/discord/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/errors.py')
-rw-r--r--discord/errors.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/discord/errors.py b/discord/errors.py
index 84768ca2..95e277d0 100644
--- a/discord/errors.py
+++ b/discord/errors.py
@@ -81,11 +81,11 @@ class HTTPException(DiscordException):
__ http://aiohttp.readthedocs.org/en/stable/client_reference.html#aiohttp.ClientResponse
- text: str
+ text: :class:`str`
The text of the error. Could be an empty string.
- status: int
+ status: :class:`int`
The status code of the HTTP request.
- code: int
+ code: :class:`int`
The Discord specific error code for the failure.
"""
@@ -150,11 +150,11 @@ class ConnectionClosed(ClientException):
Attributes
-----------
- code: int
+ code: :class:`int`
The close code of the websocket.
- reason: str
+ reason: :class:`str`
The reason provided for the closure.
- shard_id: Optional[int]
+ shard_id: Optional[:class:`int`]
The shard ID that got closed if applicable.
"""
def __init__(self, original, *, shard_id):