Document Modal parameter limits

This commit is contained in:
Omkaar 2022-04-09 09:28:18 +05:30 committed by GitHub
parent 4ce60b4cac
commit 1e914e8945
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,13 +77,14 @@ class Modal(View):
Parameters
-----------
title: :class:`str`
The title of the modal.
The title of the modal. Can only be up to 45 characters.
timeout: Optional[:class:`float`]
Timeout in seconds from last interaction with the UI before no longer accepting input.
If ``None`` then there is no timeout.
custom_id: :class:`str`
The ID of the modal that gets received during an interaction.
If not given then one is generated for you.
Can only be up to 100 characters.
Attributes
------------