From 02c317d9a422f5de2ec324b967e93c3e2dd06cba Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 30 May 2021 00:00:24 -0400 Subject: [PATCH] Fix Message.edit typings to take View parameters --- discord/message.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/message.py b/discord/message.py index 89e5dabef..5afbff71f 100644 --- a/discord/message.py +++ b/discord/message.py @@ -67,6 +67,7 @@ if TYPE_CHECKING: from .state import ConnectionState from .channel import TextChannel, GroupChannel, DMChannel from .mentions import AllowedMentions + from .ui.view import View EmojiInputType = Union[Emoji, PartialEmoji, str] @@ -1100,6 +1101,7 @@ class Message(Hashable): suppress: bool = ..., delete_after: Optional[float] = ..., allowed_mentions: Optional[AllowedMentions] = ..., + view: Optional[View] = ..., ) -> None: ...