Skip to content

Commit 37c3e83

Browse files
authored
added attachment_size_limit: NotRequired[int]
Signed-off-by: hich4t <[email protected]>
1 parent ec81001 commit 37c3e83

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

discord/interactions.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)