getSelection abstract method Null safety
- MultiselectBuilder selectionMenu,
- {bool authorOnly = true,
- Duration? timeout = const Duration(minutes: 12)}
Wait for a user to make a selection from a multiselect menu, then return the result of that interaction.
If authorOnly
is true
, only events triggered by the author of this context will be
returned, but other interactions will still be acknowledged.
If timeout
is set, this method will complete with an error after timeout
.
Implementation
Future<IMultiselectInteractionEvent> getSelection(MultiselectBuilder selectionMenu,
{bool authorOnly = true, Duration? timeout = const Duration(minutes: 12)});