mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-02 17:10:08 +00:00
refactor(Collector): make filter an option (#5903)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
This commit is contained in:
@@ -21,11 +21,10 @@ class MessageComponentInteractionCollector extends Collector {
|
||||
/**
|
||||
* @param {Message|TextChannel|DMChannel|NewsChannel} source
|
||||
* The source from which to collect message component interactions
|
||||
* @param {CollectorFilter} filter The filter to apply to this collector
|
||||
* @param {MessageComponentInteractionCollectorOptions} [options={}] The options to apply to this collector
|
||||
*/
|
||||
constructor(source, filter, options = {}) {
|
||||
super(source.client, filter, options);
|
||||
constructor(source, options = {}) {
|
||||
super(source.client, options);
|
||||
|
||||
/**
|
||||
* The message from which to collect message component interactions, if provided
|
||||
|
||||
Reference in New Issue
Block a user