createMessageCollector method

MessageCollector<PartialMessage<PartialChannel>> createMessageCollector(
  1. bool filter(
    1. Message message
    ), {
  2. int? max,
  3. Duration? duration,
})

Implementation

MessageCollector createMessageCollector (bool Function(Message message) filter, { int? max, Duration? duration }) {
  return MessageCollector<Message>(
    filter: filter,
    max: max,
    time: duration
  );
}