diff options
| author | NoName <[email protected]> | 2021-05-03 07:21:11 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-02 18:21:11 -0400 |
| commit | 2793fc06d5cb8fdbe3e19ba0c88e681d33902866 (patch) | |
| tree | 5b68e0fa4f504b2f3d1cf2927bcfb0153d7d6823 /discord/webhook/async_.py | |
| parent | Add classproperty helper utility (diff) | |
| download | discord.py-2793fc06d5cb8fdbe3e19ba0c88e681d33902866.tar.xz discord.py-2793fc06d5cb8fdbe3e19ba0c88e681d33902866.zip | |
Clarify Webhook.send return value documentation
Diffstat (limited to 'discord/webhook/async_.py')
| -rw-r--r-- | discord/webhook/async_.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/webhook/async_.py b/discord/webhook/async_.py index 2a42b52b..99a9cc48 100644 --- a/discord/webhook/async_.py +++ b/discord/webhook/async_.py @@ -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: |