awaitModal abstract method
Wait for a user to submit a modal and return a context representing that submission.
customId
is the id of the modal to wait for.
If timeout
is set, this method will complete with an error after timeout
has passed.
You might also be interested in:
- awaitSelection and awaitMultiSelection, for getting a selection from a user.
Implementation
Future<ModalContext> awaitModal(String customId, {Duration? timeout});