mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-17 03:09:05 +00:00
Clarify Webhook.send return value documentation
This commit is contained in:
parent
cd7357b93a
commit
2793fc06d5
@ -1162,16 +1162,16 @@ class Webhook(BaseWebhook):
|
|||||||
Forbidden
|
Forbidden
|
||||||
The authorization token for the webhook is incorrect.
|
The authorization token for the webhook is incorrect.
|
||||||
TypeError
|
TypeError
|
||||||
You specified both ``embed`` and ``embeds`` or ``file`` and ``files``
|
You specified both ``embed`` and ``embeds`` or ``file`` and ``files``.
|
||||||
ValueError
|
ValueError
|
||||||
The length of ``embeds`` was invalid
|
The length of ``embeds`` was invalid.
|
||||||
InvalidArgument
|
InvalidArgument
|
||||||
There was no token associated with this webhook.
|
There was no token associated with this webhook.
|
||||||
|
|
||||||
Returns
|
Returns
|
||||||
---------
|
---------
|
||||||
Optional[:class:`WebhookMessage`]
|
Optional[:class:`WebhookMessage`]
|
||||||
The message that was sent.
|
If ``wait`` is ``True`` then the message that was sent, otherwise ``None``.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if self.token is None:
|
if self.token is None:
|
||||||
|
@ -845,7 +845,7 @@ class SyncWebhook(BaseWebhook):
|
|||||||
Returns
|
Returns
|
||||||
---------
|
---------
|
||||||
Optional[:class:`SyncWebhookMessage`]
|
Optional[:class:`SyncWebhookMessage`]
|
||||||
The message that was sent.
|
If ``wait`` is ``True`` then the message that was sent, otherwise ``None``.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if self.token is None:
|
if self.token is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user