getMultiSelection<T> abstract method

Future<List<T>> getMultiSelection<T>(
  1. List<T> choices,
  2. MessageBuilder builder,
  3. {ResponseLevel? level,
  4. Duration? timeout,
  5. bool authorOnly = true,
  6. FutureOr<SelectMenuOptionBuilder> toSelectMenuOption(
    1. T
    )?,
  7. Converter<T>? converterOverride}
)

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:

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,
});