Browse Source

Document Modal parameter limits

pull/7861/head
Omkaar 3 years ago
committed by GitHub
parent
commit
1e914e8945
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      discord/ui/modal.py

3
discord/ui/modal.py

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

Loading…
Cancel
Save