aboutsummaryrefslogtreecommitdiff
path: root/discord/webhook
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-04-15 09:03:46 -0400
committerRapptz <[email protected]>2021-04-15 09:03:46 -0400
commit0542b129c2f7d60c5ec12b837d659ca35a58b1b1 (patch)
tree26a6a4c0f8a7ea50f21f0ba32d5d9b3728f09e09 /discord/webhook
parentFix rate limit handling with retry_after precision change (diff)
downloaddiscord.py-0542b129c2f7d60c5ec12b837d659ca35a58b1b1.tar.xz
discord.py-0542b129c2f7d60c5ec12b837d659ca35a58b1b1.zip
Fix WebhookMessage.edit documentation
Diffstat (limited to 'discord/webhook')
-rw-r--r--discord/webhook/async_.py7
-rw-r--r--discord/webhook/sync.py7
2 files changed, 2 insertions, 12 deletions
diff --git a/discord/webhook/async_.py b/discord/webhook/async_.py
index 296cccde..143dc710 100644
--- a/discord/webhook/async_.py
+++ b/discord/webhook/async_.py
@@ -577,17 +577,12 @@ class WebhookMessage(Message):
):
"""|coro|
- Edits a message owned by this webhook.
-
- This is a lower level interface to :meth:`WebhookMessage.edit` in case
- you only have an ID.
+ Edits the message.
.. versionadded:: 1.6
Parameters
------------
- message_id: :class:`int`
- The message ID to edit.
content: Optional[:class:`str`]
The content to edit the message with or ``None`` to clear it.
embeds: List[:class:`Embed`]
diff --git a/discord/webhook/sync.py b/discord/webhook/sync.py
index c2f4d15b..7cbbd107 100644
--- a/discord/webhook/sync.py
+++ b/discord/webhook/sync.py
@@ -341,15 +341,10 @@ class SyncWebhookMessage(Message):
files: List[File] = MISSING,
allowed_mentions: Optional[AllowedMentions] = None,
):
- """Edits a message owned by this webhook.
-
- This is a lower level interface to :meth:`WebhookMessage.edit` in case
- you only have an ID.
+ """Edits the message.
Parameters
------------
- message_id: :class:`int`
- The message ID to edit.
content: Optional[:class:`str`]
The content to edit the message with or ``None`` to clear it.
embeds: List[:class:`Embed`]