aboutsummaryrefslogtreecommitdiff
path: root/discord/webhook.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/webhook.py')
-rw-r--r--discord/webhook.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/discord/webhook.py b/discord/webhook.py
index 5702fa6e..e850cb69 100644
--- a/discord/webhook.py
+++ b/discord/webhook.py
@@ -68,7 +68,7 @@ class WebhookAdapter:
multipart: Optional[dict]
A dict containing multipart form data to send with
the request. If a filename is being uploaded, then it will
- be under a ``file`` key which will have a 3-element tuple
+ be under a ``file`` key which will have a 3-element :class:`tuple`
denoting ``(filename, file, content_type)``.
payload: Optional[dict]
The JSON to send with the request, if any.
@@ -320,20 +320,20 @@ class Webhook:
Attributes
------------
- id: int
+ id: :class:`int`
The webhook's ID
- token: str
+ token: :class:`str`
The authentication token of the webhook.
- guild_id: Optional[int]
+ guild_id: Optional[:class:`int`]
The guild ID this webhook is for.
- channel_id: Optional[int]
+ channel_id: Optional[:class:`int`]
The channel ID this webhook is for.
user: Optional[:class:`abc.User`]
The user this webhook was created by. If the webhook was
received without authentication then this will be ``None``.
- name: Optional[str]
+ name: Optional[:class:`str`]
The default name of the webhook.
- avatar: Optional[str]
+ avatar: Optional[:class:`str`]
The default avatar of the webhook.
"""
@@ -581,7 +581,7 @@ class Webhook:
If the ``embed`` parameter is provided, it must be of type :class:`Embed` and
it must be a rich embed type. You cannot mix the ``embed`` parameter with the
- ``embeds`` parameter, which must be a list of :class:`Embed` objects to send.
+ ``embeds`` parameter, which must be a :class:`list` of :class:`Embed` objects to send.
Parameters
------------