diff options
| author | Willy <[email protected]> | 2021-07-21 02:52:51 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-21 02:52:51 -0400 |
| commit | 23852404ed86a98e0b83130662368386e76236c9 (patch) | |
| tree | a37374942f5cbb49c2355f33fbc5c2fd47ff30fe | |
| parent | Fix typo in commands documentation (diff) | |
| download | discord.py-23852404ed86a98e0b83130662368386e76236c9.tar.xz discord.py-23852404ed86a98e0b83130662368386e76236c9.zip | |
Fix incorrect typehint in send_message
| -rw-r--r-- | discord/http.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/http.py b/discord/http.py index cc5ae967..865100d8 100644 --- a/discord/http.py +++ b/discord/http.py @@ -421,8 +421,8 @@ class HTTPClient: embed: Optional[embed.Embed] = None, embeds: Optional[List[embed.Embed]] = None, nonce: Optional[str] = None, - allowed_mentions: bool = None, - message_reference: bool = None, + allowed_mentions: Optional[message.AllowedMentions] = None, + message_reference: Optional[message.MessageReference] = None, components: Optional[List[components.Component]] = None, ) -> Response[message.Message]: r = Route('POST', '/channels/{channel_id}/messages', channel_id=channel_id) |