Fix up typings for attachment and message
This commit is contained in:
parent
0903ea949f
commit
d299bfef26
@ -46,14 +46,18 @@ class Reaction(TypedDict):
|
|||||||
emoji: PartialEmoji
|
emoji: PartialEmoji
|
||||||
|
|
||||||
|
|
||||||
class Attachment(TypedDict):
|
class _AttachmentOptional(TypedDict, total=False):
|
||||||
|
height: Optional[int]
|
||||||
|
width: Optional[int]
|
||||||
|
content_type: str
|
||||||
|
|
||||||
|
|
||||||
|
class Attachment(_AttachmentOptional):
|
||||||
id: Snowflake
|
id: Snowflake
|
||||||
filename: str
|
filename: str
|
||||||
size: int
|
size: int
|
||||||
url: str
|
url: str
|
||||||
proxy_url: str
|
proxy_url: str
|
||||||
height: Optional[int]
|
|
||||||
width: Optional[int]
|
|
||||||
|
|
||||||
|
|
||||||
MessageActivityType = Literal[1, 2, 3, 5]
|
MessageActivityType = Literal[1, 2, 3, 5]
|
||||||
@ -105,7 +109,7 @@ class _MessageOptional(TypedDict, total=False):
|
|||||||
mention_channels: List[ChannelMention]
|
mention_channels: List[ChannelMention]
|
||||||
reactions: List[Reaction]
|
reactions: List[Reaction]
|
||||||
nonce: Union[int, str]
|
nonce: Union[int, str]
|
||||||
webhook_id: int
|
webhook_id: Snowflake
|
||||||
activity: MessageActivity
|
activity: MessageActivity
|
||||||
application: MessageApplication
|
application: MessageApplication
|
||||||
message_reference: MessageReference
|
message_reference: MessageReference
|
||||||
|
Loading…
x
Reference in New Issue
Block a user