mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Fix WebhookMessage.edit documentation
This commit is contained in:
parent
1f74b051a8
commit
0542b129c2
@ -577,17 +577,12 @@ class WebhookMessage(Message):
|
|||||||
):
|
):
|
||||||
"""|coro|
|
"""|coro|
|
||||||
|
|
||||||
Edits a message owned by this webhook.
|
Edits the message.
|
||||||
|
|
||||||
This is a lower level interface to :meth:`WebhookMessage.edit` in case
|
|
||||||
you only have an ID.
|
|
||||||
|
|
||||||
.. versionadded:: 1.6
|
.. versionadded:: 1.6
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
------------
|
------------
|
||||||
message_id: :class:`int`
|
|
||||||
The message ID to edit.
|
|
||||||
content: Optional[:class:`str`]
|
content: Optional[:class:`str`]
|
||||||
The content to edit the message with or ``None`` to clear it.
|
The content to edit the message with or ``None`` to clear it.
|
||||||
embeds: List[:class:`Embed`]
|
embeds: List[:class:`Embed`]
|
||||||
|
@ -341,15 +341,10 @@ class SyncWebhookMessage(Message):
|
|||||||
files: List[File] = MISSING,
|
files: List[File] = MISSING,
|
||||||
allowed_mentions: Optional[AllowedMentions] = None,
|
allowed_mentions: Optional[AllowedMentions] = None,
|
||||||
):
|
):
|
||||||
"""Edits a message owned by this webhook.
|
"""Edits the message.
|
||||||
|
|
||||||
This is a lower level interface to :meth:`WebhookMessage.edit` in case
|
|
||||||
you only have an ID.
|
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
------------
|
------------
|
||||||
message_id: :class:`int`
|
|
||||||
The message ID to edit.
|
|
||||||
content: Optional[:class:`str`]
|
content: Optional[:class:`str`]
|
||||||
The content to edit the message with or ``None`` to clear it.
|
The content to edit the message with or ``None`` to clear it.
|
||||||
embeds: List[:class:`Embed`]
|
embeds: List[:class:`Embed`]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user