From 3112e1c17e7859adf6d13ed844f4c636b4bc30d8 Mon Sep 17 00:00:00 2001 From: Tobotimus Date: Sat, 6 Jan 2018 17:21:56 -0500 Subject: Add intersphinx --- discord/webhook.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'discord/webhook.py') 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 ------------ -- cgit v1.2.3