From d56f5150faea0b4b3ca3881bb2d47b42eaa9cb3b Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 4 May 2022 05:02:42 -0400 Subject: [PATCH] Fix oversight of edit parameters not being keyword only --- discord/interactions.py | 1 + discord/message.py | 2 ++ discord/webhook/async_.py | 1 + discord/webhook/sync.py | 1 + 4 files changed, 5 insertions(+) diff --git a/discord/interactions.py b/discord/interactions.py index dec4cb424..bc54324df 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -892,6 +892,7 @@ class InteractionMessage(Message): async def edit( self, + *, content: Optional[str] = MISSING, embeds: Sequence[Embed] = MISSING, embed: Optional[Embed] = MISSING, diff --git a/discord/message.py b/discord/message.py index bccfab50f..5643eb2fa 100644 --- a/discord/message.py +++ b/discord/message.py @@ -785,6 +785,7 @@ class PartialMessage(Hashable): async def edit( self, + *, content: Optional[str] = MISSING, embed: Optional[Embed] = MISSING, embeds: Sequence[Embed] = MISSING, @@ -1902,6 +1903,7 @@ class Message(PartialMessage, Hashable): async def edit( self, + *, content: Optional[str] = MISSING, embed: Optional[Embed] = MISSING, embeds: Sequence[Embed] = MISSING, diff --git a/discord/webhook/async_.py b/discord/webhook/async_.py index 223ce88ad..649f5f604 100644 --- a/discord/webhook/async_.py +++ b/discord/webhook/async_.py @@ -695,6 +695,7 @@ class WebhookMessage(Message): async def edit( self, + *, content: Optional[str] = MISSING, embeds: Sequence[Embed] = MISSING, embed: Optional[Embed] = MISSING, diff --git a/discord/webhook/sync.py b/discord/webhook/sync.py index cf329c93e..87b8092ef 100644 --- a/discord/webhook/sync.py +++ b/discord/webhook/sync.py @@ -399,6 +399,7 @@ class SyncWebhookMessage(Message): def edit( self, + *, content: Optional[str] = MISSING, embeds: Sequence[Embed] = MISSING, embed: Optional[Embed] = MISSING,