Clarify Webhook.send return value documentation
This commit is contained in:
parent
cd7357b93a
commit
2793fc06d5
@ -1162,16 +1162,16 @@ class Webhook(BaseWebhook):
|
||||
Forbidden
|
||||
The authorization token for the webhook is incorrect.
|
||||
TypeError
|
||||
You specified both ``embed`` and ``embeds`` or ``file`` and ``files``
|
||||
You specified both ``embed`` and ``embeds`` or ``file`` and ``files``.
|
||||
ValueError
|
||||
The length of ``embeds`` was invalid
|
||||
The length of ``embeds`` was invalid.
|
||||
InvalidArgument
|
||||
There was no token associated with this webhook.
|
||||
|
||||
Returns
|
||||
---------
|
||||
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:
|
||||
|
@ -845,7 +845,7 @@ class SyncWebhook(BaseWebhook):
|
||||
Returns
|
||||
---------
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user