MessageCollector<T extends PartialMessage<PartialChannel>> constructor

MessageCollector<T extends PartialMessage<PartialChannel>>({
  1. required bool filter(
    1. T message
    ),
  2. int? max,
  3. Duration? time,
})

Implementation

MessageCollector ({ required this.filter, this.max, this.time }): super(MessageCreateEvent) {
  ioc.use<CollectorService>().subscribe(this);
}