Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions discord/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ class Interaction:
modal: Optional[:class:`Modal`]
The modal that this interaction belongs to.

.. versionadded:: 2.7
attachment_size_limit: Optional[:class:`int`]
The attachment size limit.

.. versionadded:: 2.7
"""

Expand All @@ -188,6 +192,7 @@ class Interaction:
"command",
"view",
"modal",
"attachment_size_limit",
"_channel_data",
"_message_data",
"_guild_data",
Expand Down Expand Up @@ -243,6 +248,7 @@ def _from_data(self, data: InteractionPayload):
self.command: ApplicationCommand | None = None
self.view: View | None = None
self.modal: Modal | None = None
self.attachment_size_limit: int | None = data.get("attachment_size_limit")

self.message: Message | None = None
self.channel = None
Expand Down
1 change: 1 addition & 0 deletions discord/types/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ class Interaction(TypedDict):
locale: NotRequired[str]
guild_locale: NotRequired[str]
app_permissions: NotRequired[Permissions]
attachment_size_limit: NotRequired[int]
id: Snowflake
application_id: Snowflake
type: InteractionType
Expand Down
Loading