@@ -99,7 +99,11 @@ class MessageApplication(TypedDict):
99
99
name : str
100
100
101
101
102
+ MessageReferenceType = Literal [0 , 1 ]
103
+
104
+
102
105
class MessageReference (TypedDict , total = False ):
106
+ type : NotRequired [MessageReferenceType ]
103
107
message_id : Snowflake
104
108
channel_id : Snowflake
105
109
guild_id : Snowflake
@@ -111,6 +115,29 @@ class MessageReference(TypedDict, total=False):
111
115
]
112
116
113
117
118
+ class MessageCall (TypedDict ):
119
+ participants : SnowflakeList
120
+ ended_timestamp : NotRequired [str ]
121
+
122
+
123
+ class ForwardedMessage (TypedDict ):
124
+ type : MessageType
125
+ content : str
126
+ embeds : list [Embed ]
127
+ attachments : list [Attachment ]
128
+ timestamp : str
129
+ edited_timestamp : str | None
130
+ flags : NotRequired [int ]
131
+ mentions : list [UserWithMember ]
132
+ mention_roles : SnowflakeList
133
+ sticker_items : NotRequired [list [StickerItem ]]
134
+ components : NotRequired [list [Component ]]
135
+
136
+
137
+ class MessageSnapshot (TypedDict ):
138
+ message : ForwardedMessage
139
+
140
+
114
141
class Message (TypedDict ):
115
142
guild_id : NotRequired [Snowflake ]
116
143
member : NotRequired [Member ]
@@ -144,6 +171,8 @@ class Message(TypedDict):
144
171
pinned : bool
145
172
type : MessageType
146
173
poll : Poll
174
+ call : MessageCall
175
+ message_snapshots : NotRequired [list [MessageSnapshot ]]
147
176
148
177
149
178
AllowedMentionType = Literal ["roles" , "users" , "everyone" ]
@@ -154,8 +183,3 @@ class AllowedMentions(TypedDict):
154
183
roles : SnowflakeList
155
184
users : SnowflakeList
156
185
replied_user : bool
157
-
158
-
159
- class MessageCall (TypedDict ):
160
- participants : SnowflakeList
161
- ended_timestamp : NotRequired [str ]
0 commit comments