getMultiSelection<T> abstract method
Present the user with a drop-down menu of choices and return the selected choices.
If timeout
is set, this method will complete with an error after timeout
has passed.
If authorOnly
is set, only the author of this interaction will be able to interact with a
button.
level
will change the level at which the message is sent, similarly to respond.
converterOverride
can be set to change how each value is converted to a multi-select option.
The default is to use Converter.toSelectMenuOption on the default converter for T
.
You might also be interested in:
- getSelection, for getting a single selection;
- getButtonSelection, for getting a selection from a button;
- awaitSelection, for getting a selection from a pre-existing selection menu.
Implementation
Future<List<T>> getMultiSelection<T>(
List<T> choices,
MessageBuilder builder, {
ResponseLevel? level,
Duration? timeout,
bool authorOnly = true,
FutureOr<SelectMenuOptionBuilder> Function(T)? toSelectMenuOption,
Converter<T>? converterOverride,
});