aboutsummaryrefslogtreecommitdiff
path: root/discord/webhook.py
diff options
context:
space:
mode:
authorTobotimus <[email protected]>2018-01-06 17:21:56 -0500
committerRapptz <[email protected]>2018-01-06 17:23:59 -0500
commit3112e1c17e7859adf6d13ed844f4c636b4bc30d8 (patch)
tree70d7aafca549a8c245ee4fdab774e1ab5302d531 /discord/webhook.py
parent[commands] Fix MissingRequiredArgument param handling (diff)
downloaddiscord.py-3112e1c17e7859adf6d13ed844f4c636b4bc30d8.tar.xz
discord.py-3112e1c17e7859adf6d13ed844f4c636b4bc30d8.zip
Add intersphinx
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
------------