File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,10 @@ class Interaction:
164164 modal: Optional[:class:`Modal`]
165165 The modal that this interaction belongs to.
166166
167+ .. versionadded:: 2.7
168+ attachment_size_limit: Optional[:class:`int`]
169+ The limit size of attachment.
170+
167171 .. versionadded:: 2.7
168172 """
169173
@@ -188,6 +192,7 @@ class Interaction:
188192 "command" ,
189193 "view" ,
190194 "modal" ,
195+ "attachment_size_limit" ,
191196 "_channel_data" ,
192197 "_message_data" ,
193198 "_guild_data" ,
@@ -243,6 +248,7 @@ def _from_data(self, data: InteractionPayload):
243248 self .command : ApplicationCommand | None = None
244249 self .view : View | None = None
245250 self .modal : Modal | None = None
251+ self .attachment_size_limit : int | None = data .get ("attachment_size_limit" )
246252
247253 self .message : Message | None = None
248254 self .channel = None
You can’t perform that action at this time.
0 commit comments