From 0542b129c2f7d60c5ec12b837d659ca35a58b1b1 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 15 Apr 2021 09:03:46 -0400 Subject: [PATCH] Fix WebhookMessage.edit documentation --- discord/webhook/async_.py | 7 +------ discord/webhook/sync.py | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/discord/webhook/async_.py b/discord/webhook/async_.py index 296cccde1..143dc7100 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 c2f4d15b4..7cbbd1078 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`]