Fix Message.edit typings to take View parameters

This commit is contained in:
Rapptz 2021-05-30 00:00:24 -04:00
parent 7bd1211b36
commit 02c317d9a4

View File

@ -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:
...