diff options
| author | Rapptz <[email protected]> | 2021-05-29 08:01:37 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-05-29 08:01:37 -0400 |
| commit | 695662416ac5d4fe1b36cc8f8b084df1a884e104 (patch) | |
| tree | 0b785222c77738382c33143215c22a44ce0fe2da /discord | |
| parent | Check future state before setting result in View (diff) | |
| download | discord.py-695662416ac5d4fe1b36cc8f8b084df1a884e104.tar.xz discord.py-695662416ac5d4fe1b36cc8f8b084df1a884e104.zip | |
Fix Messageable.send overload to take view parameters
Diffstat (limited to 'discord')
| -rw-r--r-- | discord/abc.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/abc.py b/discord/abc.py index 2b44fa30..ac80778f 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -63,6 +63,7 @@ if TYPE_CHECKING: from .embeds import Embed from .message import Message, MessageReference from .enums import InviteTarget + from .ui.view import View SnowflakeTime = Union["Snowflake", datetime] @@ -1147,6 +1148,7 @@ class Messageable(Protocol): allowed_mentions: AllowedMentions = ..., reference: Union[Message, MessageReference] = ..., mention_author: bool = ..., + view: View = ..., ) -> Message: ... @@ -1163,6 +1165,7 @@ class Messageable(Protocol): allowed_mentions: AllowedMentions = ..., reference: Union[Message, MessageReference] = ..., mention_author: bool = ..., + view: View = ..., ) -> Message: ... |