Interface: MessageCollectorOptions
Options to be passed to a MessageCollector
Extends
Properties
dispose?
optionaldispose?:boolean
Whether to dispose data when it's deleted
Inherited from
filter?
optionalfilter?: (item, ...args) =>boolean
The filter applied to this collector
Parameters
| Parameter | Type |
|---|---|
item | Message |
...args | any[] |
Returns
boolean
Inherited from
idle?
optionalidle?:number
How long to stop the collector after inactivity in milliseconds
Inherited from
max?
optionalmax?:number
The maximum number of messages to collect
maxProcessed?
optionalmaxProcessed?:number
The maximum number of messages to process (both matching and non-matching the filter)
time?
optionaltime?:number
How long to run the collector for in milliseconds