Clarify Webhook.send return value documentation

This commit is contained in:
NoName 2021-05-03 07:21:11 +09:00 committed by GitHub
parent cd7357b93a
commit 2793fc06d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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: