Collect messages and component interactions.
Create a new message collector and start it
Parameter Description options Object (optional)
The options of the collectoroptions.maxReceived Boolean (optional)
Whether deleted messages will be counted to end the collectoroptions.filter Function (optional)
The filter that will be applied to the collectoroptions.onRun Function (optional)
Emitted after an object is savedoptions.onEnd Function (optional)
Emitted after collector endsoptions.timeout Number (optional)
Collector duration in milliseconds.options.idle Boolean (optional)
Whether the collector timeout will be restarted after saving an elementoptions.max Number (optional)
The limit of objects in the collector
Returns Collector<'messageCreate'>
Create a new message collector and start it
Parameter Description channelID String
The ID of the channeloptions Object (optional)
The options of the collectoroptions.maxReceived Boolean (optional)
Whether deleted messages will be counted to end the collectoroptions.filter Function (optional)
The filter that will be applied to the collectoroptions.onRun Function (optional)
Emitted after an object is savedoptions.onEnd Function (optional)
Emitted after collector endsoptions.timeout Number (optional)
Collector duration in milliseconds.options.idle Boolean (optional)
Whether the collector timeout will be restarted after saving an elementoptions.max Number (optional)
The limit of objects in the collector
Returns Collector<'messageCreate'>
Create a new component interaction collector and start it
Parameter Description options Object (optional)
The options of the collectoroptions.maxReceived Boolean (optional)
Whether deleted messages will be counted to end the collectoroptions.filter Function (optional)
The filter that will be applied to the collectoroptions.onRun Function (optional)
Emitted after an object is savedoptions.onEnd Function (optional)
Emitted after collector endsoptions.timeout Number (optional)
Collector duration in milliseconds.options.idle Boolean (optional)
Whether the collector timeout will be restarted after saving an elementoptions.max Number (optional)
The limit of objects in the collector
Returns Collector<'interactionCreate'>