We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 554ecb1 commit 88da798Copy full SHA for 88da798
discord/commands/context.py
@@ -268,6 +268,13 @@ def unselected_options(self) -> list[Option] | None:
268
return self.command.options # type: ignore
269
return None
270
271
+ @cached_property
272
+ def attachment_size_limit(self) -> int | None:
273
+ """Returns the attachment size limit associated with this context's command.
274
+ Shorthand for :attr:`.Interaction.attachment_size_limit`.
275
+ """
276
+ return self.interaction.attachment_size_limit
277
+
278
@property
279
@discord.utils.copy_doc(InteractionResponse.send_modal)
280
def send_modal(self) -> Callable[..., Awaitable[Interaction]]:
0 commit comments