Browse Source

Fix WebhookMessage.edit documentation

pull/6736/head
Rapptz 4 years ago
parent
commit
0542b129c2
  1. 7
      discord/webhook/async_.py
  2. 7
      discord/webhook/sync.py

7
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`]

7
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`]

Loading…
Cancel
Save