refactor(Collector): make filter an option (#5903)

Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
This commit is contained in:
Jan
2021-06-26 11:57:06 +02:00
committed by GitHub
parent 1439183ad3
commit 0d0c8f07f2
7 changed files with 61 additions and 83 deletions

View File

@@ -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